A
A
Alexander Bagirov2014-06-22 20:02:11
Nginx
Alexander Bagirov, 2014-06-22 20:02:11

How to set up a subdomain in Nginx?

Good evening.
My domain is in CloudFlare. I used to use Apache on the server, but after installing GitLab I switched to Nginx.
How can I properly create a subdomain in it?
/var/www has a chess folder. According to one of the instructions, I added a new host file to sites-available and added it to sites-enabled.
After adding an entry to CloudFlare. When opened, it gives an error 403 (access denied).
Where is the mistake?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Petrikov, 2014-06-23
@alexbagirov

nginx config to the studio, there is an assumption that nginx is not running from the user from which apache worked and, accordingly, the nginx user has no rights to access the directory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question