configure my multisite wordpress with existing javascript site url using nginx

  • Unknown's avatar

    Our Java script site is running in our server and configure domain with that using nginx. And configured multisite wordpress in the same domain as immediate next url. The url must be like the below.
    https://xyz.com – JS site url
    https://xyz.com/multisite – multisite wordpress url

    But when we to access mutisite url it is not loading properly. It is loading as broken page. Attached Screen of the broken site image and nginx config.

    map $http_host $blogid {
        default 0;
        include /var/www/html/blogswordpress/wp-content/uploads/nginx-helper/map.conf;
    }
    #server {
    #    listen 80;
    #    server_name  xyz.com;
    # #   include /etc/nginx/mime.types;
    #    return 301 https://xyz.com;
    #}
    
    server {
           listen 443 ssl;
           listen [::]:443;
    server_name  xyz.com;
    # include /etc/nginx/mime.types;
           #ssl on;
            ssl_certificate /home/ubuntu/star_xyz_com.pem;
           ssl_certificate_key /home/ubuntu/xyf.key;
    	ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    root /var/www/html/jssite/;
    location ^~ /blogswordpress {
        alias /var/www/html/multisite;
        index index.php;
    
        if (!-e $request_filename) { rewrite ^ /blogswordpress/index.php last; }
    
        location ~ .php$ {
            if (!-f $request_filename) { return 404; }
            fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
    
            include /etc/nginx/fastcgi_params;
            fastcgi_param  SCRIPT_FILENAME $request_filename;
        }
    }
    }
    

    The blog I need help with is: (visible only to logged in users)

  • Hey there,

    As the site is on a local server, we are unable to help with this issue.

    I’m curious to know what you’re looking to build here? Would you be willing to tell me more and I can provide insights into what plan you may require or how best to approach the website.

    Our features can be found here: https://wordpress.com/pricing/

    It may be the case that you may not need to hard code anything. :)

  • Unknown's avatar

    Hi Aleone89 Exactly i am looking for the nginx configuration to setup multisite wordpress in the immediate next url in ubuntu server.

  • Good Morning –

    Sadly, we aren’t able to support multi site set ups directly on our managed hosting from WordPress.com. There are some more details about nginx configuration for plugins and the multi site set up on this page: https://wordpress.com/support/php-environment/

    Since the site you’ve inquired about is running on a stand alone WordPress installation the best place to get help is going to be from the community of volunteers on https://wordpress.org/support/forums/

    Otherwise, you may consider hiring a developer and we can suggest booking that through UpWork.

  • The topic ‘configure my multisite wordpress with existing javascript site url using nginx’ is closed to new replies.