CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   Fubard my httpd.conf (http://www.codingforums.com/showthread.php?t=282169)

J7mbo 11-14-2012 02:59 PM

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 :o

stevenmw 11-29-2012 10:08 AM

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.

XmisterIS 11-30-2012 02:33 PM

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!!!!

Spookster 11-30-2012 09:10 PM

And it at all possible test it out on a development machine rather than your live server.


All times are GMT +1. The time now is 01:44 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.