nginx_testing
This is an old revision of the document!
Testing website configuration without a domain: Create and enable a vhost with your servers ip similar to the following:
server {
listen 80;
server_name 195.154.250.67;
# access_log /var/log/nginx/lukeshirnia.co.uk.access.log;
# error_log /var/log/nginx/lukeshirnia.co.uk.access.log;
root /var/www/vhost/;
location / {
index index.html index.htm index.php;
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/vhost/$fastcgi_script_name;
}
}
You can then load the website by typing the directory similar to the following:
x.x.x.x/websitedirectory
nginx_testing.1429097443.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
