Prev Previous Post   Next Post Next
Old 20th February 2007, 17:03
laser144 laser144 is offline
Join Date: Apr 2006
Posts: 31
Thanks: 1
Thanked 0 Times in 0 Posts
Default apache2 problem


Having switched ISP, I am having problems with my webserver (LAMP -
Debian Sarge, Apache2). It used to work like a charm with my old ISP and all I changed is the first ServerName entry (which I copied from my IPCops main page).

For some reason I cannot access the DocumentRoot (/var/www/ folder for the sailmaster website (
I can access and phpMyAdmin, which is
a symlink in the /var/www/ directory. There are no
problems connecting to

Setting up the server while connected via my previous ISP, I found out
that with virtual hosting you always have to have the hostname for the
IP-address of the server first in the file which sets the virtual
hosts. My modem is in bridged mode, so the IP-address and the hostname
is passed on to the 'red' Ethernet card on my IPCop firewall, which is
set to DHCP. The IP-address is, the hostname is

I can ping all hostnames and IP-addresses (the internal IP-address of
my server as well). I think it must be some DNS-related problem, but I
haven't got a clue how to solve it.

Any help or advice is greatly appreciated!

Underneath is a copy of my /etc/apache2/sites-available/default



NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot /var/www/

<Directory /var/www/>
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/

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

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 ::1/128


<VirtualHost *:80>
ServerAlias *
DocumentRoot /var/www/

<VirtualHost *:80>
ServerAlias *
DocumentRoot /var/www/
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 13:20
Problem with upload.php (Apache2 ubuntu6.10) ambiz_x Server Operation 7 15th February 2007 20:51
Problem with Tomcat5 and Apache2 with Virtual Hosts using mod_jk llokas HOWTO-Related Questions 1 17th January 2007 19:32
Access Problem with Apache2 Alias Heinz Installation/Configuration 3 18th November 2006 16:19
Big problem with apache2 on Ubuntu piratta Installation/Configuration 2 18th January 2006 18:29

All times are GMT +2. The time now is 03:34.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.