virtual host files and Nginx

Fred.

Verified User
Joined
Sep 5, 2009
Messages
220
Hi,

I'm switching from Apache to Nginx

Can I use the same virtual host files?

I copied virtual_host2_secure_sub.conf, virtual_host2_sub.conf and virtual_host2.conf to /usr/local/directadmin/data/templates/custom

edited them and then did
Code:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue

But that doesn't seems to work. It seems like Nginx is not using these files.

My folder structure is different, That's why I need to change the files.

Did I miss something?

Thanks! :)
 
Last edited:
Ok, I copied nginx_server_secure_sub.conf and nginx_server_secure.conf to the custom folder. And edited them.
Then did
Code:
./build rewrite_confs

And i'm testing on a secure sub domain.

And I still see "Nginx is functioning normally" instead of my website.

So there is something else not right... :confused:

This is my directory structure
Code:
home/admin/domains/example.com/private_html
And for subdomains
Code:
home/admin/domains/example.com/subdomains/sub/private_html
 
Ok, I just saw SSL was not switched on under the domain in DA so I switched that on an now I get a "404 Not Found"
 
Back
Top