Hi, have been trying to install wordpress using APS installer but when accessing the page always showing and when accessing wp-admin showing error log also showing nothing despite have been declare it in vhost file Here is my vhost : Code: server { listen *:80; server_name example.com ; root /var/www/example.com/web; index index.html index.htm index.php index.cgi index.pl index.xhtml; error_log /var/log/ispconfig/httpd/example.com/error.log; access_log /var/log/ispconfig/httpd/example.com/access.log combined; # Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac). location ~ /\. { deny all; access_log off; log_not_found off; } location = /robots.txt { allow all; log_not_found off; access_log off; } location = /favicon.ico { log_not_found off; access_log off; } location / { try_files $uri $uri/ /index.php?$args; } # Add trailing slash to */wp-admin requests. rewrite /wp-admin$ $scheme://$host$uri/ permanent; location ~* \.(jpg|jpeg|png|gif|css|js|ico)$ { expires max; log_not_found off; } location ~ \.php$ { try_files $uri =404; include /etc/nginx/fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }
the good thing that my existing wordpress web that i installed before upgrading is still running well, still wondering why
Any idea why the vhost doesn't create any log ? Sometimes it works sometimes it's not. I dont even add the code falko mention before. I just delete the web and create the new one, and suddenly the wordpress guide me to install wp-config.php file and the installation works (i download latest wordpress using wget not APS). I try to reproduce new web again with different domain and it's become not working again even though i add the code mention before. Curiosly i try to edit the welcome page index.html and the content isn't changing (i try to add some text to the html), clearing browser cache also still produce same welcome page. Is anyone out there get the same result with me ?
If you dont get anything in the log and if you dont see changes of the index.html file, then you most likely view a different page (e.g. index.html of another site on your server).
Yes, thats right. But if you e.g. choose a wrong IP or if you mix IP and *on your server, the nginx might display the content of a different website as a IP address is a stronger match then *.
But ther is also an option to use *. If you choose an Ip for oe vhost and * for another one, then the vhost were you have choosen the IP address gets the request from the one were you have choosen *.
Is there any difference in default index.html location, can you give me some example please. Lets say i've 2 web pages domain1.com and domain2.com and 1 IP. Thank you