Welcome! Log In Create A New Profile

Advanced

nginx.conf questions

February 27, 2011 11:54PM
I was following the tutorial here. It says
This will create the virtual host file for Nginx in the sites-available directory. Simply paste the following into the file and change each instance of “example.com” to your site’s domain name:
server {
listen 80;
server_name www.example.com;
rewrite ^/(.*) http://example.com/$1 permanent;
}

server {
listen 80;
server_name example.com;

access_log /var/www/example.com/logs/access.log;
error_log /var/www/example.com/logs/error.log;

location / {
root /var/www/example.com/public/;
index index.html;
}
}
The problem is that I don't have a domain name, I have an ip address... so what should I change example.com to? I tried changing it to my ip address, but it doesn't work

However, I don't have a domain name... I have an IP... what if I want to make this as a subdomain, say xxx.xxx.xxx.xxx/exampleHow can I do that? _______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx.conf questions

equinox February 27, 2011 11:54PM

Re: nginx.conf questions

Dayo February 28, 2011 11:23AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 294
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready