I am almost certain that there is an error with the way that the configuration files are being written for the NginX vhost. If you look at a vhost file that is written by the system, you find something like this:
Code:
server {
listen *:80;
server_name minecraftarea.com www.minecraftarea.com;
root /var/www/minecraftarea.com/web;
index index.html index.htm index.php index.cgi index.pl index.xhtml;
error_page 400 /error/400.html;
error_page 401 /error/401.html;
error_page 403 /error/403.html;
error_page 404 /error/404.html;
error_page 405 /error/405.html;
error_page 500 /error/500.html;
error_page 502 /error/502.html;
error_page 503 /error/503.html;
error_log /var/log/ispconfig/httpd/minecraftarea.com/error.log;
access_log /var/log/ispconfig/httpd/minecraftarea.com/access.log combined;
## Disable .htaccess and other hidden files
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location /stats {
index index.html index.php;
auth_basic "Members Only";
auth_basic_user_file /var/www/clients/client1/web3/.htpasswd_stats;
}
location ~ \.php$ {
try_files $uri =404;
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9012;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_intercept_errors on;
}
}
This does not allow the site to load from what I can tell. I was able to get the site to work properly by changing some of the configuration.
I had to remove the error document lines, and I had to put the different type of index lines into a location.
Code:
server {
listen *:80;
server_name drewclardy.com www.drewclardy.com;
root /var/www/drewclardy.com/web;
error_log /var/log/ispconfig/httpd/drewclardy.com/error.log;
access_log /var/log/ispconfig/httpd/drewclardy.com/access.log combined;
location / {
index index.html index.htm index.php index.cgi index.pl index.xhtml;
try_files $uri $uri/ /index.php;
}
## Disable .htaccess and other hidden files
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location /stats {
index index.html index.php;
auth_basic "Members Only";
auth_basic_user_file /var/www/clients/client1/web1/.htpasswd_stats;
}
location ~ \.php$ {
try_files $uri =404;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/lib/php5-fpm/web1.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_intercept_errors on;
}
}
These changes allowed NginX to load the site that it was giving the connection error to before hand.
I am pretty sure that this is a critical bug!
Recent comments
17 hours 40 min ago
1 day 21 min ago
1 day 4 hours ago
1 day 5 hours ago
1 day 14 hours ago
1 day 23 hours ago
2 days 34 min ago
2 days 4 hours ago
2 days 8 hours ago
2 days 8 hours ago