Help - Search - Members - Calendar
Full Version: Editing httpd.conf ??
The Planet Forums > Control Panels > Plesk
jaxon121
I've done a search of the forums but haven't come up with a solid answer, so I'm posting a new topic... I'm a total newbie to all this server admin stuff, so bear with me.

I'm installing 3rd party software that requires that I add a few lines of code to the httpd.conf for my domain. In reading through my main httpd.conf in /usr/local/psa/apache/conf I saw that it refers to an Include:

QUOTE
### Section 3: Virtual Hosts

Include conf/httpd.include


I assumed this to mean that if I create a document called httpd.include and put in the code required by the software, the server would first read
/usr/local/psa/apache/conf/httpd.conf
for general config settings, then read
/usr/local/psa/home/vhosts/mydomain.com/httpd.include
for domain-specific config settings.

I did exactly that, but to no avail. Does the httpd.include file/directory require certain permission settings? am i going about this totally wrong? Should I just put the required code in the main httpd.conf file, since I'm only running one domain anyways? Many thanks in advance for any suggestions!
Rich2k
The httpd.include file is the one used by plesk to setup and configure all of your domain's individual settings on a Plesk server.

You can edit it yourself but Plesk will overwrite it as soon as you make any changes in PSA. However it will not overwrite httpd.conf so you can put any changes in there. Of course you can write any include files yourself.

Just put the lines yourself in the right place in httpd.conf and restart apache (if it fails to start you know you've mucked up the code somewhere in httpd.conf).
jaxon121
Rich, does that mean i should edit
/usr/local/psa/apache/conf/httpd.conf ??

Or should I create an httpd.conf file somewhere in my domain's folder? i.e.
/usr/local/psa/home/vhosts/domain.com/httpd.conf ??

If I do the latter, what's the proper place for the conf file, and what permissions (if any) do I have to set?
4web-space
Hi i think what you should do is first find your domain in

/usr/local/psa/apache/conf/httpd.include

Copy all that it provides about your domain

make a new file called
/usr/local/psa/apache/conf/custom.include

Paste all the info you got about your domain from httpd.include and add the extras. I think apache will use the last settings it comes too so will ignore the settings for your domain in httpd.include

Finally in httpd.conf

include custom.include on the line directly after httpd.include

restart apache and try it out

Robbie
4web-space.com
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.