Welcome! Log In Create A New Profile

Advanced

How to do a sub-domain?

Posted by rapsik 
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: 150
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