Question
Nginx Configuration for Multi Domain Host will Ruin Your Brain
Are you Use Nginx…
I find a Big Junked Bugs in Nginx web server that it cause brain, Not only your brain but also cause when your visitors didn’t find your website and you will lost your thousands of visitors. My suggestion to all beginner, didn’t try Nginx as your Web server.
Your brain will death after Confusing you lot.
I become mental, when I’m gone to configure Host Multi Domain
with Nginx
Web Server.
12-24hours completed but I can not find real solutions What is the main problem my whole website does not work, except a WordPress site. And are also not worked any help from the forum.
the main problem is multisite domain are not working
I ’m installed simple LEMP Nginx on Ubuntu 14.04
Added All domians site block configuration file sites-available to sites-enabled
Only my one Wordpress Site are work fine
& 2nd wordpress didn't work
When I visit my site post url nothing find anything except site> page, category-page, & wp admin.
and Other Non WordPress site are only show homepage visiting any site url
This is my sites-available
conf file
server {
listen 80; #default_server
listen [::]:80; #default_server ipv6only=on
root /var/www/domain.net/public_html;
index index.php index.html index.htm;
server_name domain.net www.domain.net;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
sendfile off;
location = /50x.html {
root /var/www/domian.net/public_html;
}
location ~ \.php$ {
#fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
location ~ /\.ht {
}
}
I am done almost everything to fix problem that Work properly. But nothing happened
By depressed depressing, now I’m planning to Install Apache as Web Server.
Last Chance! to see Any help will Work would appreciated.
thanks
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×