Jump to content

Virtual host on Apache.


Guest tcreek
 Share

Recommended Posts

also did you try

http://yourhostname.whatever/index.htm ??

index.htm may not be in your DirectoryIndex

my suggestion is to move /var/www/calandria to /var/www/html

then change the commonhttpd.conf and Vhost.conf files to reflect the change

 

 

As steve mention /var/www/html is the default dir and will work straight from install

Link to comment
Share on other sites

  • Replies 41
  • Created
  • Last Reply

Top Posters In This Topic

Okay. I did those suggestions

 

with and without the /index.htm

 

and still same result.

 

 

<Directory /var/www/html/calandria>

   Options Indexes FollowSymLinks MultiViews

   AllowOverride All

   Order allow,deny

   Allow from all

</Directory>

 

################# Named VirtualHosts

NameVirtualHost 66.25.242.26

<VirtualHost 66.25.242.26>

ServerName calandria.dynu.com

#ServerPath /domain

ServerAlias www.calandria.com

DocumentRoot /var/www/html/calandria

</VirtualHost>

Link to comment
Share on other sites

ok open a terminal (xterm or whatever)

su - root

then do this

tail -f /var/log/httpd/errors*

 

this will watch the error logs in realtime

then try to access your website a few times, and see what turns up in the logs.

post them back here

Link to comment
Share on other sites

here is is

 

 

[Tue Feb 25 23:56:03 2003] [error] [client 192.168.1.253] client denied by server configuration: /var/www/calandria/index.htm

[Tue Feb 25 23:56:23 2003] [error] [client 192.168.1.253] client denied by server configuration: /var/www/calandria

Link to comment
Share on other sites

It has got to be a permissions problem, because no matter if I put impossible names for files, it always tells me... Forbidden

 

I tried to browse there by ip and all kinds of combinations for document roots. The other site still work fine?

Link to comment
Share on other sites

My last post was posted before I saw your error file. I noticed this directive in my default installation in /etc/httpd/conf/commonhttpd.conf

 

<IfModule mod_status>                               /etc/httpd/conf/commonhttpd.conf (526)

<Location /server-status>

SetHandler server-status                           /etc/httpd/conf/commonhttpd.conf (528)

Order deny,allow                                   /etc/httpd/conf/commonhttpd.conf (529)

Deny from all                                      /etc/httpd/conf/commonhttpd.conf (530)

allow from 127.0.0.1                               /etc/httpd/conf/commonhttpd.conf (531)

</Location>

</IfModule>

 

 

This is a little over my head, but if you have that module, then the default is to deny from all but 127.0.0.1

Link to comment
Share on other sites

I thought I read some time ago that once you setup one virtual host, the main site is cancelled out and then you must make all sites virtual

 

nope there is a default site, so you can still access the machine via IP

ex:

http://www.thewebb.net.nz (on my loudas server)

http://loudas.com (on my loudas server)

http://202.27.218.97 (my default site on my loudas server)

Link to comment
Share on other sites

Well now the calandria.dynu.com site is now also my main domain also now :-((

 

this is the closest module I can find on it

 

<IfModule mod_status.c>

   <Location /server-status>

       SetHandler server-status

       Order deny,allow

       Deny from all

       allow from 127.0.0.1

       #Allow from .your_domain.com

   </Location>

Link to comment
Share on other sites

Maybe I should give up and switch to Win 2000 AS :-(

This is too much of a headache.

 

I do get the Virtual Server to work, but then it takes control over the main host site.

 

When I remove the Virtual site it is back to normal.

 

Anything else??

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share


×
×
  • Create New...