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

Hi,

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/
sailmaster.nl/) folder for the sailmaster website (www.sailmaster.nl).
I can access www.sailmaster.nl/administrator and phpMyAdmin, which is
a symlink in the /var/www/sailmaster.nl/ directory. There are no
problems connecting to www.gijpstuiver.nl

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 84.245.34.233, the hostname is
84-245-34-233.dsl.cambrium.nl

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

Regards,

Andy

NameVirtualHost *:80

<VirtualHost *:80>
ServerName 84-245-34-233.dsl.cambrium.nl
ServerAdmin webmaster@sailmaster.nl
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/
</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>

<VirtualHost *:80>
ServerName www.sailmaster.nl
ServerAlias sailmaster.nl *.sailmaster.nl
ServerAdmin webmaster@sailmaster.nl
DocumentRoot /var/www/sailmaster.nl/
</VirtualHost>

<VirtualHost *:80>
ServerName www.gijpstuiver.nl
ServerAlias gijpstuiver.nl *.gijpstuiver.nl
ServerAdmin webmaster@sailmaster.nl
DocumentRoot /var/www/gijpstuiver.nl/gallery2/
</VirtualHost>
Reply With Quote
Sponsored Links
 

Bookmarks

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 08:12.


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