You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Fajar Priyanto <fa...@arinet.org> on 2004/01/05 08:06:20 UTC

[users@httpd] the 2nd, 3rd vhost troubled

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear all,
I have this apache which runs on LAN:
Server Version: Apache-AdvancedExtranetServer/2.0.44 (Mandrake
          Linux/11mdk) mod_perl/1.99_08 Perl/v5.8.0 mod_ssl/2.0.44
          OpenSSL/0.9.7a PHP/4.3.1

I've also a running DNS on the LAN, and updated the records for my vhosts.

I tried to setup a NameVirtualHost like this:
NameVirtualHost 192.168.0.233:80
<VirtualHost 192.168.0.233:80>
ServerName psb.sistek.kom
DocumentRoot /var/www/html/psb
</VirtualHost>

<VirtualHost 192.168.0.233:80>
ServerName phpmyadmin.sistek.kom
DocumentRoot /var/www/html/phpmyadmin
</VirtualHost>

<VirtualHost 192.168.0.233:80>
ServerName webmail.sistek.kom
DocumentRoot /var/www/html/webmail
</VirtualHost>

The problem is:
psb.sistek.kom runs well
but, phpmyadmin.sistek.kom and webmail.sistek.kom open up their first page OK, 
but got the page cannot be displayed for any page inside it. 

On /var/log/httpd/error_log I got this:
[Mon Jan 05 11:11:51 2004] [error] [client 192.168.0.233] File does not exist: 
/var/www/html/psb/phpmyadmin

Why on earth apache looks for phpmyadmin.sistek.kom INSIDE of psb.sistek.kom? 
I thought I have set the DocumentRoot for each vhost?

What am I doing wrong here? If I move phpmyadmin's html inside of psb, it runs 
smoothly.

Many thanks in advance for helping me, guys.
- -- 
Fajar http://linux.arinet.org
Linux mdk91.sistek.kom 2.4.21-0.13mdk GNU/Linux
13:56:47 up 6:37, 10 users, load average: 0.23, 0.54, 0.48
Quote of the day:
Win98 is called Win98 because there is a 98% probability that it will crash
during installation
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/+QzvMai9kCFqACoRAsdlAKDG6NgZF8QRXhRecZDgRALGM2BT8wCfcRAZ
pgnhww2AoXMfExAGqjt/oGU=
=MVQR
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] the 2nd, 3rd vhost troubled

Posted by Fajar Priyanto <fa...@arinet.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks guys, your right!.
I messed up with phpmyadmin AbsoluteUri setting.
I should have type it "http://phpmyadmin.sistek.kom" instead of 
"http://www.sistek.kom/phpmyadmin"
Fajar.


On Monday 05 January 2004 02:06 pm, Fajar Priyanto wrote:
> Dear all,
> I have this apache which runs on LAN:
> Server Version: Apache-AdvancedExtranetServer/2.0.44 (Mandrake
>           Linux/11mdk) mod_perl/1.99_08 Perl/v5.8.0 mod_ssl/2.0.44
>           OpenSSL/0.9.7a PHP/4.3.1
>
> I've also a running DNS on the LAN, and updated the records for my vhosts.
>
> I tried to setup a NameVirtualHost like this:
> NameVirtualHost 192.168.0.233:80
> <VirtualHost 192.168.0.233:80>
> ServerName psb.sistek.kom
> DocumentRoot /var/www/html/psb
> </VirtualHost>
>
> <VirtualHost 192.168.0.233:80>
> ServerName phpmyadmin.sistek.kom
> DocumentRoot /var/www/html/phpmyadmin
> </VirtualHost>
>
> <VirtualHost 192.168.0.233:80>
> ServerName webmail.sistek.kom
> DocumentRoot /var/www/html/webmail
> </VirtualHost>
>
> The problem is:
> psb.sistek.kom runs well
> but, phpmyadmin.sistek.kom and webmail.sistek.kom open up their first page
> OK, but got the page cannot be displayed for any page inside it.
>
> On /var/log/httpd/error_log I got this:
> [Mon Jan 05 11:11:51 2004] [error] [client 192.168.0.233] File does not
> exist: /var/www/html/psb/phpmyadmin
>
> Why on earth apache looks for phpmyadmin.sistek.kom INSIDE of
> psb.sistek.kom? I thought I have set the DocumentRoot for each vhost?
>
> What am I doing wrong here? If I move phpmyadmin's html inside of psb, it
> runs smoothly.
>
> Many thanks in advance for helping me, guys.

- -- 
Fajar http://linux.arinet.org
Linux mdk91.sistek.kom 2.4.21-0.13mdk GNU/Linux
08:55:38 up 1:29, 10 users, load average: 0.49, 0.19, 0.12
Quote of the day:
Windows 98 is *NOT* a virus - viruses are small and efficient.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/+hXqMai9kCFqACoRAkSAAJ9sm8fMf603mUudpd09z2Cus9AtowCcDTWg
tEOzhXpo40GKjNZOgShxcAA=
=yxbs
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] the 2nd, 3rd vhost troubled

Posted by Jez Hancock <je...@munk.nu>.
On Mon, Jan 05, 2004 at 02:06:20PM +0700, Fajar Priyanto wrote:
> I have this apache which runs on LAN:
> Server Version: Apache-AdvancedExtranetServer/2.0.44 (Mandrake
>           Linux/11mdk) mod_perl/1.99_08 Perl/v5.8.0 mod_ssl/2.0.44
>           OpenSSL/0.9.7a PHP/4.3.1
> 
> I've also a running DNS on the LAN, and updated the records for my vhosts.
> 
> I tried to setup a NameVirtualHost like this:
> NameVirtualHost 192.168.0.233:80
> <VirtualHost 192.168.0.233:80>
> ServerName psb.sistek.kom
> DocumentRoot /var/www/html/psb
> </VirtualHost>
> 
> <VirtualHost 192.168.0.233:80>
> ServerName phpmyadmin.sistek.kom
> DocumentRoot /var/www/html/phpmyadmin
> </VirtualHost>
> 
> <VirtualHost 192.168.0.233:80>
> ServerName webmail.sistek.kom
> DocumentRoot /var/www/html/webmail
> </VirtualHost>
> 
> The problem is:
> psb.sistek.kom runs well
> but, phpmyadmin.sistek.kom and webmail.sistek.kom open up their first page OK, 
> but got the page cannot be displayed for any page inside it. 
> 
> On /var/log/httpd/error_log I got this:
> [Mon Jan 05 11:11:51 2004] [error] [client 192.168.0.233] File does not exist: 
> /var/www/html/psb/phpmyadmin
> 
> Why on earth apache looks for phpmyadmin.sistek.kom INSIDE of psb.sistek.kom? 
> I thought I have set the DocumentRoot for each vhost?
Have you checked your configuration for phpmyadmin thoroughly?  It
sounds as though there's a rogue configuration option that's been set at
some point in the phpmyadmin config.

You could try doing:
echo "test" > /var/www/html/phpmyadmin/test.html

and then browsing to:

http://phpmyadmin.sistek.com/test.html

and if that displays ok then at least you know the vhost is working
correctly.

-- 
Jez Hancock
 - System Administrator / PHP Developer

http://munk.nu/
http://jez.hancock-family.com/  - personal weblog
http://ipfwstats.sf.net/        - ipfw peruser traffic logging

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org