nginx+apache custom conf location ?

Kronus

Verified User
Joined
May 31, 2007
Messages
48
thanks in advance

Im having problems with saving a version of

Code:
/etc/nginx/webapps.conf
/etc/nginx/webapps.hostname.conf
/etc/nginx/webapps.ssl.conf

I have copied these to

Code:
/usr/local/directadmin/custombuild/custom/nginx/conf/
/usr/local/directadmin/custombuild/custom/nginx_reverse/conf/

when i do a ./build rewrite_confs it overwrites my changes.
where should i change these ?
The changes are for webDAV support.

the changes for apache work fine.
 
Hello,

It's working on my end:

I copied:

/etc/nginx/webapps.conf to /usr/local/directadmin/custombuild/custom/nginx_reverse/conf/webapps.conf

executed:

/usr/local/directadmin/custombuild/build rewrite_confs

and I see my custom config in /etc/nginx/webapps.conf with

Code:
if ($request_method !~ ^(GET|HEAD|POST|PROPFIND|OPTIONS|PUT|DELETE|MKCOL|COPY|MOVE|REPORT)$ ) {


Please note you can find

Code:
http_methods=GET:HEAD:POST

in /usr/local/directadmin/custombuild/options.conf

So feel free to change it to:

Code:
http_methods=GET:HEAD:POST:PROPFIND:OPTIONS:PUT:DELETE:MKCOL:COPY:MOVE:REPORT

and rewrite configs

Code:
/usr/local/directadmin/custombuild/build rewrite_confs

in order to get all those methods allowed.
 
Thanks i wasn't sure if the options.conf change would effect both apache and nginx. Guess i should have checked.

Also I looked and I guess i messed up, I had copied the unchanged versions instead of the moded versions of the files for some reason.

Thanks again.
 
Back
Top