print your complete httpd.conf file, as well as the /etc/host file let's take a look at what you have. -----Original Message----- From: fedora-list-bounces@xxxxxxxxxx [mailto:fedora-list-bounces@xxxxxxxxxx]On Behalf Of Dennis Kaptain Sent: Tuesday, April 28, 2009 9:59 AM To: Community assistance, encouragement,and advice for using Fedora. Subject: Re: Apache Virtual Server ----- Mensaje original ---- > De: Dennis Kaptain <dkaptain@xxxxxxxxxxxx> > Para: fedora-list@xxxxxxxxxx > Enviado: lunes, 27 de abril, 2009 12:59:46 > Asunto: Apache Virtual Server > > > I am playing with the Zend Framework on my laptop. In my reading of > Zend documentation it looks like Zend wants a certain directory structure > so I created: > /var/www/html/QuickStart/ > /var/www/html/QuickStart/application/ > /var/www/html/QuickStart/application/controllers/ > /var/www/html/QuickStart/application/views/ > /var/www/html/QuickStart/application/views/scripts/ > /var/www/html/QuickStart/library/ > /var/www/html/QuickStart/public/ > > The last directory 'public' wants to be the DocumentRoot > I want to set up a virtual server whose DocumentRoot is > /var/www/html/QuickStart/public > > my machine's name is confianza and it is running Fedora 10 > [root@confianza conf]# uname -a > Linux confianza 2.6.27.21-170.2.56.fc10.i686 #1 SMP Mon Mar 23 23:37:54 EDT 2009 > i686 i686 i386 GNU/Linux > > I set up /etc/hosts so both confianza and confianzazend resolve to 127.0.0.1 > [root@confianza conf]# grep 127.0.0.1 /etc/hosts > 127.0.0.1 localhost.localdomain localhost confianza confianzazend > > > My current apache web server uses /var/www/html as it's DocumentRoot and runs > fine. > > > [root@confianza conf]# yum list installed | grep -i http > httpd.i386 2.2.11-2.fc10 installed > httpd-tools.i386 2.2.11-2.fc10 installed > jakarta-commons-httpclient.i386 1:3.1-0.3.fc10 installed > system-config-httpd.noarch 5:1.4.4-2.fc10 installed > [root@confianza conf]# yum list installed | grep -i zend > php-ZendFramework.noarch > > I edited /etc/httpd/conf/httpd.conf as follows: > # > ServerName confianza:80 > NameVirtualHost *:80 > # > > ServerName confianza > DocumentRoot "/var/www/html" > > # > > ServerName confianzazend > DocumentRoot "/var/www/html/QuickStart/public" > > > I then restart httpd > [root@confianza html]# service httpd restart > Stopping httpd: [ OK ] > Starting httpd: [ OK ] > > > I want http://confianza to return the contents of /var/www/html > I want http://confianzazend to return the contents of /var/www/html/QuickStart > > > What is happening is that both http://confianza and http://confianzazend are > both returning the contents of /var/www/html > > I've looked at several web pages and they all say the same thing, this should > just work (TM). It seems simple enough yet my problem persists. What else do I > need to do? > > Thanks Just a little more information from /var/log/httpd/access_log When I request http://localhost I get an entry that says 127.0.0.1 - - [28/Apr/2009:11:52:08 -0500] "GET / HTTP/1.1" 200 3488 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042708 Fedora/3.0.10-1.fc10 Firefox/3.0.10" When I request http://confianza I get an entry that says 127.0.0.1 - - [28/Apr/2009:11:53:06 -0500] "GET / HTTP/1.1" 200 3488 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042708 Fedora/3.0.10-1.fc10 Firefox/3.0.10" When I request http://confianzazend I get an entry that says 127.0.0.1 - - [28/Apr/2009:11:53:54 -0500] "GET / HTTP/1.1" 200 3492 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042708 Fedora/3.0.10-1.fc10 Firefox/3.0.10" All three entries are identical get requests for / Yet the php command <?php echo $_SERVER['SERVER_NAME']."<br>\n"; ?> in /var/www/html/index.php prints out 'localhost', 'confianza', or 'confianzazend' depending on what url I call. I have a feeling I'm on to it here but I'm not sure where to go next. DK ¡Obtén la mejor experiencia en la web! Descarga gratis el nuevo Internet Explorer 8. http://downloads.yahoo.com/ieak8/?l=mx -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines