Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter borntodeal

    (@borntodeal)

    bcworkz, I am an utter newbie. A mere Padawan learner, oh Jedi Master!

    Here is the server block for

    ***start***

    
    server {
            listen 80;
            listen [::]:80;
    
            root /var/www/html/c3/c3summitllc.com;
    
            # Add index.php to the list if you are using PHP
            index index.html index.htm index.nginx-debian.html index.php;
    
            server_name c3summitllc.com www.c3summitllc.com;
    
            if (!-e $request_filename) {
                rewrite /wp-admin$ $scheme://$host$uri/ permanent;
                rewrite ^(/[^/]+)?(/wp-.*) $2 last;
                rewrite ^(/[^/]+)?(/.*\.php) $2 last;
            }
    
            location / {
                    try_files $uri $uri/ /index.php?$args;
            }
    
            # pass PHP scripts to FastCGI server
            #
            location ~ \.php$ {
                    include snippets/fastcgi-php.conf;
            #       # With php-fpm (or other unix sockets):
                    fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
            }
    }
    
    ***end***
    

    This block needs to accomplish three things:

    All requests to domain should redirect to another domain

    All requests to these paths must open the individual multi-sites (there are two different sites):

    These URLs do not work correctly, they are supposed to be sites in themselves:

    How would I configure this to work properly now?

Viewing 1 replies (of 1 total)