Q&A Categories
<Find a Question:
Where do I find my httpd.conf file?
Jul
5
2010
Question by beanpole136: Where do I find my httpd.conf file?
I run a website that is hosted by GoDaddy. I know quite a bit about coding websites, but I hardly know anything about how things work on the server side. I need to modify the server settings file httpd.conf. I have read on other sites that the file is located at /etc/httpd/conf/httpd.conf, but I can’t find the ‘etc’ folder and no one explains in detail how to find it. If anyone could shed some light on this, I’d appreciate it a lot.
Best answer:
Answer by Studsmurf
download putty http://www.chiark.greenend.org.uk/~sgtatham/putty/
connect to the site using putty.
it will be there.
(btw this is a linux thing. putty connects via ssh to a linux box. if this doesnt make any sense to you doing this at all may be over your head.)
Know better? Leave your own answer in the comments!
Answer #2
Normally on a shared hosting server (like I assume you have with GoDaddy) you are not given access to modify the “master” httpd.conf file.
You can, however, overwrite the settings by creating a file named ‘.htaccess’ in the directory where you want the settings to be overwritten (it will apply recursively to all the sub-directories under it).
Answer this Question
You must be Logged In to post an Answer.
Not a member yet? Sign Up Now »
Answer #1
I’m assuming that your server is running some kind of Unix operating system such as Linux. Open up a terminal and type in the command ‘nautilus /etc’ and hit enter. That should open up the file browser in the /etc directory.
If you want to browse the directory via the command line then open up a terminal and issue the command ‘cd /etc’ and that will do the same thing as above just via the terminal.
If you want the command to open up and edit httpd.conf then type ‘sudo gedit /etc/apache/httpd.conf’.
If you receive an error stating that nautilus isn’t installed for the first two commands, issue ‘sudo apt-get install nautilus’ and then hit enter.
Hope that solves the problem.