Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

strange virtual host problem

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
A strange virtual host problem? - I have apache running, along with perl, php and mysql on a Win XP Pro box. was fine, I had my 'main' site set up in the apache folder, and a couple of virtual hosts in various other folders. I had a name from as the main..

strange virtual host problem - Hi, I have a - what I think strange - virtual host problem. I do have a web server set up that uses ssl. Now I want to reroute the incoming requests to the https://. In order to do so I used Rewrite. My virtual hosts are somehow like that: ..

Strange problem with virtual hosts - Hi! I'm going mad. Really. All the day working on apache but it still does not want to do its job ... I have the (Unix) Debian GNU/Linux Kernel 2.4.18 ----- 8< ----- [...] ..

Virtual Host Problem - OK I have a web server that up until now served 1 web page. However the company needed to expand and needed to add a few other sites to handle customers and So I added a few virtual host sections for the new sites. I also the old..

virtual host problem - hi all i have add a virtual host in when i try to visit the url from the web all images's path point to how can i point image path to without change href from to tnx
Next:  Apache: CGI starting and stopping daemons.  
Author Message
apache3

External


Since: Jun 07, 2004
Posts: 2



(Msg. 1) Posted: Mon Jun 07, 2004 7:33 pm
Post subject: strange virtual host problem
Archived from groups: alt>apache>configuration (more info?)

I'm a newbie with Apache and I'm trying to configure two virtual hosts
in my server, but I always get the test page when I try to connect tho them.
I first tried to configure Apache with redhat-config-httpd (I'm running
RH Enterprise Linux WS), then I resumed the original
/etc/httpd/conf/httpd.conf and I changed it with these lines :

#
# Use name-based virtual hosting.
#
NameVirtualHost 192.168.0.254:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.

<VirtualHost 192.168.0.254>
# ServerAdmin webmaster DeleteThis @dummy-host.example.com
DocumentRoot /var/www/moodle
ServerName moodle.ceismo.org
ErrorLog logs/moodle-error_log
CustomLog logs/moodle-access_log common
</VirtualHost>

<VirtualHost 192.168.0.254>
# ServerAdmin webmaster DeleteThis @dummy-host.example.com
DocumentRoot /var/www/phpmyadmin
ServerName pma.esolver.it
ErrorLog logs/pma-error_log
CustomLog logs/pma-access_log common
</VirtualHost>

Issuing httpd -S gives this :
VirtualHost configuration:
192.168.0.254:80 is a NameVirtualHost
default server moodle.ceismo.org (/etc/httpd/conf/httpd.conf:1032)
port 80 namevhost moodle.ceismo.org
(/etc/httpd/conf/httpd.conf:1032)
port 80 namevhost pma.esolver.it (/etc/httpd/conf/httpd.conf:1040)
wildcard NameVirtualHosts and _default_ servers:
_default_:443 192.168.0.254 (/etc/httpd/conf.d/ssl.conf:101)
Syntax OK

Can someone help me?

Roberto

 >> Stay informed about: strange virtual host problem 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Mon Jun 07, 2004 7:33 pm
Post subject: Re: strange virtual host problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

roberto <apache RemoveThis @esolver.it> wrote:
 > I'm a newbie with Apache and I'm trying to configure two virtual hosts


 > NameVirtualHost 192.168.0.254:80

Do not use the IP address, use * instead, this also in the <VirtualHost
blocks.

 > <VirtualHost 192.168.0.254>
 > DocumentRoot /var/www/moodle

You should have a <Directory ...> block for the DocumentRoot.
If you don't have an index.html file in the docroot, add an
Options +Indexes in the <Directory blocks.

Davide

--
| Micro Credo: Never trust a computer bigger than you can lift.
|
|
|<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: strange virtual host problem 
Back to top
Login to vote
apache3

External


Since: Jun 07, 2004
Posts: 2



(Msg. 3) Posted: Mon Jun 07, 2004 7:48 pm
Post subject: Re: strange virtual host problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

roberto ha scritto:
 > I'm a newbie with Apache and I'm trying to configure two virtual hosts
 > in my server, but I always get the test page when I try to connect tho
 > them.
 > I first tried to configure Apache with redhat-config-httpd (I'm running
 > RH Enterprise Linux WS), then I resumed the original
 > /etc/httpd/conf/httpd.conf and I changed it with these lines :
 >
 > #
 > # Use name-based virtual hosting.
 > #
 > NameVirtualHost 192.168.0.254:80
 >
 > #
 > # VirtualHost example:
 > # Almost any Apache directive may go into a VirtualHost container.
 > # The first VirtualHost section is used for requests without a known
 > # server name.
 >
 > <VirtualHost 192.168.0.254>
 > # ServerAdmin webmaster DeleteThis @dummy-host.example.com
 > DocumentRoot /var/www/moodle
 > ServerName moodle.ceismo.org
 > ErrorLog logs/moodle-error_log
 > CustomLog logs/moodle-access_log common
 > </VirtualHost>
 >
 > <VirtualHost 192.168.0.254>
 > # ServerAdmin webmaster DeleteThis @dummy-host.example.com
 > DocumentRoot /var/www/phpmyadmin
 > ServerName pma.esolver.it
 > ErrorLog logs/pma-error_log
 > CustomLog logs/pma-access_log common
 > </VirtualHost>
 >
 > Issuing httpd -S gives this :
 > VirtualHost configuration:
 > 192.168.0.254:80 is a NameVirtualHost
 > default server moodle.ceismo.org (/etc/httpd/conf/httpd.conf:1032)
 > port 80 namevhost moodle.ceismo.org
 > (/etc/httpd/conf/httpd.conf:1032)
 > port 80 namevhost pma.esolver.it (/etc/httpd/conf/httpd.conf:1040)
 > wildcard NameVirtualHosts and _default_ servers:
 > _default_:443 192.168.0.254 (/etc/httpd/conf.d/ssl.conf:101)
 > Syntax OK
 >
 > Can someone help me?
 >
 > Roberto
 >
I forgot the message in error.log:

[Mon Jun 07 16:46:23 2004] [error] [client 127.0.0.1] Directory index
forbidden by rule: /var/www/html/

bye<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: strange virtual host problem 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]