LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-31-2013, 07:56 PM   #1
nobuntu
Member
 
Registered: Mar 2012
Distribution: Debian for server, CrunchBang for everything that's not a server
Posts: 143

Rep: Reputation: 24
Default apache2 /sites-available/000-default and apache2.conf


Could someone save me from my lack of backups by posting unaltered/stock versions of apache2's 000-default and apache2.conf (as consistent with a Debian system)?

Thanks!
 
Old 02-01-2013, 05:38 AM   #2
acelino
LQ Newbie
 
Registered: Jan 2013
Distribution: Ubuntu
Posts: 10

Rep: Reputation: Disabled
Here you go =)


Quote:
<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>
You may also find step by step Linux Tutorials and Administration at <moderated>

Last edited by colucix; 02-01-2013 at 06:28 AM. Reason: Attempt to drive traffic to web site removed.
 
Old 02-06-2013, 10:14 AM   #3
nobuntu
Member
 
Registered: Mar 2012
Distribution: Debian for server, CrunchBang for everything that's not a server
Posts: 143

Original Poster
Rep: Reputation: 24
Many thanks, belatedly. You saved my system!
 
Old 02-06-2013, 11:05 AM   #4
acelino
LQ Newbie
 
Registered: Jan 2013
Distribution: Ubuntu
Posts: 10

Rep: Reputation: Disabled
No Problem!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 - how to get rid of apache2-default ozymandias Linux - Server 4 09-12-2008 10:27 AM
Redirecting Apache2 to Wordpress site by default GTBlackwell Linux - Software 1 09-11-2008 02:45 AM
Use other than default apache2 hua Linux - Server 2 02-07-2007 09:51 PM
Change default directory in Apache2 walterbyrd Linux - Software 2 07-19-2006 11:47 AM
change the default dir fro apache2 dev_mohamed Linux - Software 5 06-22-2005 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration