Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-03-2007, 02:14 PM   #1
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
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
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2007, 02:16 PM   #2
prodiac
Confirmed User
 
Industry Role:
Join Date: Sep 2003
Location: amerinoc.com
Posts: 419
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..
prodiac is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2007, 02:20 PM   #3
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
# 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
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2007, 02:25 PM   #4
_Lush_
Confirmed User
 
_Lush_'s Avatar
 
Industry Role:
Join Date: Jul 2005
Location: GDL Jal.
Posts: 536
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?
__________________
IcQ 50611033
_Lush_ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2007, 02:29 PM   #5
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by lushy View Post
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.
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2007, 03:43 PM   #6
BigBen
Confirmed User
 
Join Date: Nov 2004
Location: scv
Posts: 2,299
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.
BigBen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.