Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-14-2012, 02:59 PM   PM User | #1
J7mbo
New to the CF scene

 
Join Date: Nov 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
J7mbo is an unknown quantity at this point
Internet Explorer Fubard my httpd.conf

Hi guys, I really would appreciate some help from the experts here. I've completely messed up my httpd.conf and other settings on my VPS and the worst thing is - I can't find out what I've done wrong! Please help, I've had a few hack attempts using my Apache recently, so I want to get this up as soon as poss!

My aim:

/var/www/downloads/<username-sub-dir> all username sub dir's require a username / password (from mod_auth_mysql) to view the file listing, OR to have a cookie available.

I have conflicts clearly between httpd.conf and /sitest-enabled/000-default. I'm not experienced with most of the stuff here, so any help would be massively appreciated!

Setup

sites-enabled/000-default: http://jsfiddle.net/Xcece/
httpd.conf here: http://jsfiddle.net/CFRSu/

I'm not using .htaccess files. This all seemed to work a few days ago, now it's not

Any help would be amazing right now after the previous hack attempt that grabbed all my code
J7mbo is offline   Reply With Quote
Old 11-29-2012, 10:08 AM   PM User | #2
stevenmw
Regular Coder

 
stevenmw's Avatar
 
Join Date: Jun 2007
Location: OK
Posts: 446
Thanks: 26
Thanked 30 Times in 30 Posts
stevenmw is an unknown quantity at this point
You've asked this several times. If you're having that much trouble with it why not rebuild it? That is my best advice. Do it a piece at a time, and test it as you go. Probably the easiest way.
__________________
--
Thanks!
stevenmw is offline   Reply With Quote
Old 11-30-2012, 02:33 PM   PM User | #3
XmisterIS
Regular Coder

 
Join Date: Jun 2010
Posts: 239
Thanks: 50
Thanked 6 Times in 6 Posts
XmisterIS is an unknown quantity at this point
I'm with Steven!

1) Re-install your server completely.

2) Make a back up of your configuration files (To me, this is Rule #1 when fiddling with anything that you need root permissions for. Root permissions are there for a reason ...)

3) Change your config files incrementally and carefully investigate the results of your changes.

4) Use the backed up versions to make everything OK again!

Remember - make back ups! Make back ups! Make back ups!!!! You'll save yourself a very big headache if you do!!!!
XmisterIS is offline   Reply With Quote
Old 11-30-2012, 09:10 PM   PM User | #4
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
And it at all possible test it out on a development machine rather than your live server.
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:49 AM.


Advertisement
Log in to turn off these ads.