Nginx Config

Rockyuk

Verified User
Joined
Aug 3, 2020
Messages
41
Hello Everyone,
I need to incorporate the following configuration on one domain please

Can anyone point me in the right direction of how to do it within DA please?

Thanks

Rockyuk
 
Hi SEO Guru,
Sorry I will need more help than that, where do I put the configuration for one domain? As I tried through Custom HTTPD Configurations but I could not get it to work.
 
Hi Rockyuk

I recommend using the "custom httpd configuration" in the Admin level: DirectAdmin admin page -> Custom HTTPD configuration -> find a domain -> nginx.conf , click CUSTOMIZE and in the CUSTOM AREA tabs, enter the required configuration and reload nginx.

You may find something in DirectAdmin templates: https://docs.directadmin.com/webservices/nginx/customizing-nginx.html#activating-per-domain

I also reccommend verify what do you need to add on custom3, you don't need to add the full code.




This is helpully because if you do any update or change, your configuration won´t be affected.

-Regards
 
Last edited:
Back
Top