LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-23-2007, 02:32 PM   #1
luis14
Member
 
Registered: Jun 2006
Location: Des Moines
Distribution: Debian Lenny
Posts: 59

Rep: Reputation: 15
Help with Apache2 config


I am trying to set up a server with Apache2 and virtual hosting.
I can see my test page on the LAN at http://10.0.0.17/index.html

No one outside the LAN can see my test page, but they can see Apache default page or Apache error pages depending on my settings.

my address is http://project1.zapto.org
My test page is at /var/www/project1/index.html

here is my /etc/apache2/sites-available/project1
it is symlinked to /etc/apache2/sites-enabled/project1

NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName project1.zapto.org
DocumentRoot /var/www/project1/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/project1>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
RedirectMatch ^/$ /apache2-default/
</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
ServerSignature On

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>

Aside from this file, I have not made any configuration changes to Apache.
I'm using no-ip to update my dynamic IP and have port 80 forwarded through my DSL modem. Port 80 is not being blocked by my ISP.

I have changed owner and permissions of /var/www with:
Code:
#chown -R daniel /var/www 
#chmod -R 755 /var/www
Thanks much for any help. This is driving me nuts.
 
Old 01-24-2007, 05:26 AM   #2
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675
Blog Entries: 11

Rep: Reputation: 36
I'm not sure but I think one thing you should do is comment out the "RedirectMatch" line. This is redirecting the server to the apache2 default page.
 
Old 01-24-2007, 08:50 AM   #3
luis14
Member
 
Registered: Jun 2006
Location: Des Moines
Distribution: Debian Lenny
Posts: 59

Original Poster
Rep: Reputation: 15
radiodee1,
that did the trick! Thanks.
 
  


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 Config Help - No Idea YaAqoB Linux - Software 2 08-17-2005 02:47 AM
where is the apache2 config file dev_mohamed Linux - Software 2 06-20-2005 08:21 PM
Can't config mod_deflate on apache2 joeyta Linux - Software 2 02-18-2005 03:58 PM
Apache2 SSL Config problem Xixulon Linux - Software 1 10-19-2004 04:11 PM
Apache2 config errors.. SiGmA_X Linux - Software 0 06-17-2003 02:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:40 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