Hi!
I have apache2 running on solaris 10. Everything worked fine until I made a test today: I wanted to change the IP and the hostname of the server. Then I tried to look at the web-page and I got the Message
Quote:
Forbidden You don't have permission to access /index.html on this server.
|
.
So I copied my original conf-files back, and... the message remains!
I checked all the config-files: I didn't forget anything. I restarted the server and apache quite a lot of time but without any change.
the error log-file says:
Quote:
[warn] NameVirtualHost XXX.XXX.XX.XX:0 has no VirtualHosts
|
I don't understand why it says
and not
.
In httpd.conf I only had changed the IP and hostname and changed it back afterward. So I can't figure out whay I get this message now.
I can remmber that I had the same problem as I configured apache for the first time. And then it suddenly worked without any apparent reason.
I would really appreciate any help.
Here the interesting parts of my httpd.conf:
Quote:
DocumentRoot "/space/servers/http/docs"
#DocumentRoot "/space/servers/http/docs/"
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# This should be changed to whatever you set DocumentRoot to.
#
#<Directory "/var/apache2/htdocs">
<Directory /space/servers/http/docs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
|
Quote:
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
NameVirtualHost XXX.XXX.XX.XX
<VirtualHost *:80>
ServerName myserver.com
DocumentRoot /space/servers/http/docs
Alias myalias /space/servers/http/el/docs
</VirtualHost>
|