![]() |
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 |
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.. |
# 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 |
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? |
Quote:
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. |
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