Page 1 of 1

Cannot access B3 server web pages

Posted: 17 Jan 2011, 17:18
by markcdashdown
I have created two new virtual servers in apache2 to allow me to run two web sites from the same IP address but now I cannot access the B3 server web Page since I enabled them.

Can you help?

Re: Cannot access B3 server web pages

Posted: 17 Jan 2011, 18:04
by Ubi
run as root

Code: Select all

apache2ctl -St
and show the output.
Also: read the log files

Re: Cannot access B3 server web pages

Posted: 18 Jan 2011, 02:54
by mcdashdown
Thanks. This is the output:


Warning: DocumentRoot [/home/web/www.writewordsonline.com/httpDocs] does not exist
Warning: DocumentRoot [/home/web/www.writewordsonline.com/httpDocs] does not exist
[Tue Jan 18 07:46:43 2011] [error] VirtualHost *:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Tue Jan 18 07:46:43 2011] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Tue Jan 18 07:46:43 2011] [error] VirtualHost *:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Tue Jan 18 07:46:43 2011] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Tue Jan 18 07:46:43 2011] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Tue Jan 18 07:46:43 2011] [error] VirtualHost *:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Tue Jan 18 07:46:43 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:* is a NameVirtualHost
default server localhost.localdomain (/etc/apache2/sites-enabled/bubba:1)
port 443 namevhost localhost.localdomain (/etc/apache2/sites-enabled/bubba:1)
port 80 namevhost localhost.localdomain (/etc/apache2/sites-enabled/bubba:44)
port 80 namevhost http://www.eyesoft-software.com (/etc/apache2/sites-enabled/ http://www.eyesoft-software.com:5)
port 443 namevhost http://www.eyesoft-software.com (/etc/apache2/sites-enabled /www.eyesoft-software.com:26)
port 80 namevhost http://www.writewordsonline.com (/etc/apache2/sites-enabled/ http://www.writewordsonline.com:5)
port 443 namevhost http://www.writewordsonline.com (/etc/apache2/sites-enabled /www.writewordsonline.com:25)
Syntax OK

Re: Cannot access B3 server web pages

Posted: 18 Jan 2011, 03:00
by Ubi
well, you know what the problem is now right?

Re: Cannot access B3 server web pages

Posted: 18 Jan 2011, 04:20
by mcdashdown
Sorry, no :( But I am sure it is something I did. I followed the guidance here - http://www.debian-administration.org/ar ... ...perhaps too slavishly...Sorry i am new to all this...

Re: Cannot access B3 server web pages

Posted: 18 Jan 2011, 04:55
by mcdashdown
Or perhaps it would be more accurate to say that I can see there is a problem but I do not know how to fix it :?

Re: Cannot access B3 server web pages

Posted: 18 Jan 2011, 06:33
by Ubi
did you bother to read the first line of the output you posted?

Re: Cannot access B3 server web pages

Posted: 18 Jan 2011, 06:38
by mcdashdown
You means the warning that a directory did not exist. Yes...I resolved that...it was a typo.

I have also now deleted the files I wrote and reloaded the web server...but the issue persists.

Re: Cannot access B3 server web pages

Posted: 18 Jan 2011, 06:43
by mcdashdown
This is what I am getting now:

[Tue Jan 18 11:40:09 2011] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Tue Jan 18 11:40:09 2011] [error] VirtualHost *:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefine d results
[Tue Jan 18 11:40:09 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:* is a NameVirtualHost
default server localhost.localdomain (/etc/apache2/sites-enabled/bubba: 1)
port 443 namevhost localhost.localdomain (/etc/apache2/sites-enabled/bu bba:1)
port 80 namevhost localhost.localdomain (/etc/apache2/sites-enabled/bub ba:44)
Syntax OK

The only sites-available site is bubba. This is what to file says:

<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/apache2/cacert.pem
SSLCertificateKeyFile /etc/apache2/privkey.pem

ServerAdmin webmaster@localhost

DocumentRoot /home/web/
DirectoryIndex index.html index.htm index.cgi index.pl index.php index.xhtml
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/web/>
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
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On

Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

</VirtualHost>

<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /home/web/
DirectoryIndex index.html index.htm index.cgi index.pl index.php index.xhtml
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/web/>
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
LogLevel warn

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

Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /music http://localhost:3689
ProxyPassReverse /music http://localhost:3689

</VirtualHost>

Re: Cannot access B3 server web pages

Posted: 18 Jan 2011, 07:15
by Ubi
In your first post you stated that you added two extra sites, but I don't see those anywhere. As this file is nearly identical to the version you received, my guess is you also messed about with other files but did not show these here...

also, next time you show config code or output, please put it in code brackets so we can read them

also; please show the output of

Code: Select all

grep VirtualHost `find /etc/apache2`

Re: Cannot access B3 server web pages

Posted: 18 Jan 2011, 08:56
by mcdashdown
Here is the output:

Code: Select all

/etc/apache2/apache2.conf:# If you do not specify an ErrorLog directive within a                                                                                                                                   <VirtualHost>
/etc/apache2/apache2.conf:# logged here.  If you *do* define an error logfile fo                                                                                                                                  r a <VirtualHost>
/etc/apache2/ports.conf:# have to change the VirtualHost statement in
/etc/apache2/ports.conf:NameVirtualHost *:80
/etc/apache2/ports.conf:    # If you add NameVirtualHost *:443 here, you will al                                                                                                                                  so have to change
/etc/apache2/ports.conf:    # the VirtualHost statement in /etc/apache2/sites-av                                                                                                                                  ailable/default-ssl
/etc/apache2/ports.conf:    # to <VirtualHost *:443>
/etc/apache2/conf.d/other-vhosts-access-log:# Define an access log for VirtualHo                                                                                                                                  sts that don't define their own logfile
/etc/apache2/conf.d/localized-error-pages:# even on a per-VirtualHost basis.  If                                                                                                                                   you include the Alias in the global server
/etc/apache2/conf.d/virtual.conf:NameVirtualHost *
/etc/apache2/sites-enabled/eyesoft.conf:<VirtualHost *>
/etc/apache2/sites-enabled/eyesoft.conf:</VirtualHost>
/etc/apache2/sites-enabled/writewordsonline:<VirtualHost *>
/etc/apache2/sites-enabled/writewordsonline:</VirtualHost>
/etc/apache2/sites-enabled/bubba:<VirtualHost *:443>
/etc/apache2/sites-enabled/bubba:</VirtualHost>
/etc/apache2/sites-enabled/bubba:<VirtualHost *:80>
/etc/apache2/sites-enabled/bubba:</VirtualHost>
/etc/apache2/sites-available/eyesoft.conf:<VirtualHost *>
/etc/apache2/sites-available/eyesoft.conf:</VirtualHost>
/etc/apache2/sites-available/default:NameVirtualHost *
/etc/apache2/sites-available/default:<VirtualHost *:80>
/etc/apache2/sites-available/default:</VirtualHost>
/etc/apache2/sites-available/writewordsonline:<VirtualHost *>
/etc/apache2/sites-available/writewordsonline:</VirtualHost>
/etc/apache2/sites-available/bubba:<VirtualHost *:443>
/etc/apache2/sites-available/bubba:</VirtualHost>
/etc/apache2/sites-available/bubba:<VirtualHost *:80>
/etc/apache2/sites-available/bubba:</VirtualHost>
/etc/apache2/sites-available/default-ssl:<VirtualHost _default_:443>
/etc/apache2/sites-available/default-ssl:</VirtualHost>
I have recreated the configuration files for www.Eyesoft-software.com and www.writewordsonline.com and rebooted my router and the server and it now seems to work, though only if the address is https:// (not if it is http://).