How to do a sub-domain?
December 28, 2012 06:16AM
Hello to everybody.

I try to add the sub-domain and describe it in configuration files of nginx.

I read a lot from internet resources about this issue and i got the next solution:
server {
listen 80;
server_name sub.sitename.com;
root /var/www/sitename.com/sub;
index index.html index.php;
}

What is wrong and what is need also?

Do i need to edit etc/hosts?

Thanks beforehand to all.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 122
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready