GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   httpd.conf file - need help on this (https://gfy.com/showthread.php?t=692462)

spacedog 01-03-2007 02:14 PM

httpd.conf file - need help on this
 
Does each directory in the root have its own httpd.conf file?

I am trying to find mine so I can edit it. Obviously I won't be able to do it in ftp so I need to go through ssh but I don't know the commands for this.

Anyone have step by step instructions for opening httpd.conf & making edits to it

prodiac 01-03-2007 02:16 PM

Only if the main httpd.conf file is configured to include a separate config file for each user .. otherwise, by default there is just one config in the main apache config directory.

Most control panels do use separate config files for each user though..

borked 01-03-2007 02:20 PM

# locate httpd.conf
/etc/httpd/httpd.conf
# pico /etc/httpd/httpd.conf

Ctrl-O Ctrl-X to save and exit after editing.

Not all vhosts need have their own httpd.conf file, though it makes for easier management - if you want each vhost to have it's own conf file, add this to the end of the main httpd.conf:

Include /etc/httpd/vhosts/*.conf

_Lush_ 01-03-2007 02:25 PM

you would probably be safer if you let your host do the mods for you since it isnt just a matter of opening the file and making modifications you also need to reload or restart apache after any mods to the file plus you could really muss things up if you dont know what your doing.

Btw what are you exactly trying to do? are you just wanting to add something to the virtual conf of a domain on your server?

spacedog 01-03-2007 02:29 PM

Quote:

Originally Posted by lushy (Post 11648468)
you would probably be safer if you let your host do the mods for you since it isnt just a matter of opening the file and making modifications you also need to reload or restart apache after any mods to the file plus you could really muss things up if you dont know what your doing.

Btw what are you exactly trying to do? are you just wanting to add something to the virtual conf of a domain on your server?

Yes. I am trying to add string of code to httpd.conf file of a particular domain on the server.

yes, it does need to be restarted too, so I just asked hosting company to do it.. I decided I don't want to fuck with it.

BigBen 01-03-2007 03:43 PM

You should have your host do it for you. Or, use .htaccess.

Otherwise, I use vi to edit the file and you can restart with 'apachectl restart'

Edit - you already asked your host. Good idea.


All times are GMT -7. The time now is 07:59 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123