Topic: How to include custom configuration file for a domain

HI
I'm a little confused on the custom config
Tell me if I'm correct.
I would like to set Wordpress rewrites for a few wordpress sites I have one being a MultiSite
Do I per domain put the rewrites into a file called mydomain.com and copy it to a custom directory that I have to create.
I do not have to put an include anywhere. The program will search that directory.
now I would like put this

server {
    server_name_in_redirect off;
    listen   80;
    server_name _;

will the file over write something that was included in the vhosts file of nginx conf file?
Do you have a tutorial on how to use it?  The wiki is not clear

Re: How to include custom configuration file for a domain

You can't make any changes to vhost.conf , but you can include configuration for every domain or subdomain, please see the documentation from  http://wiki.sysvm.com/CPanelNginx

Syslint Technologies | 24x7 Server Management | Outsourced Support | Software Development - (0091) 471-3273-211

3 (edited by phpbbmodinstalls 2011-07-08 11:38:52)

Re: How to include custom configuration file for a domain

will the file I'm making and putting into the custom directory will those settings over write the vhosts settings

for instance in one of the vhosts there is a line that say
          server_name doamin1.com www.domain1.com www.domain2.com domain2.com xxx.xxx.xxx.206;
If I put in the domain2.com file in the custom directory
          server_name _;

will the end result be
          server_name _;
or
          server_name _;
          server_name doamin1.com www.domain1.com www.domain2.com domain2.com xxx.xxx.xxx.206;

Re: How to include custom configuration file for a domain

Should I fill out a support ticket?

I had a problem after placing a few custom files since I don't know what can and can't go into the file
Nginx refused to start and everything was down.
I figured out that I should check the error logs
and low and behold
2011/07/08 08:56:22 [emerg] 18409#0: "server" directive is not allowed here in /etc/cpnginx/custom/mydomain.com:1
so I deleted the files
Can you please tell me What can go into this file.

I have a few wordpress sites I need to put in so tweaks for and this is one of the requirememts for doing domain mapping with a plug in to handle it

server {
    server_name_in_redirect off;
    listen   80;
    server_name _;
           }

Ifd I can get everything running good I will be buying this
Thank you

Re: How to include custom configuration file for a domain

It is  already including the "server" tag inside vhost.conf .  so you only need to include the rest of lines inside custom configuration,

Syslint Technologies | 24x7 Server Management | Outsourced Support | Software Development - (0091) 471-3273-211

6 (edited by phpbbmodinstalls 2011-07-12 20:26:32)

Re: How to include custom configuration file for a domain

How would I use fastcgi mod_fcgid in the script? what are the lines that is required for it to work?
Apache is using it as the php handler
and I would like to forward php to Apache to fastcgi
(I think I explained that correctly?)
thanks in advance

Re: How to include custom configuration file for a domain

hello , you just enable fcgi in apache , that will work fine

Syslint Technologies | 24x7 Server Management | Outsourced Support | Software Development - (0091) 471-3273-211