RE: Relative path with virtual host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






Hi Ken,

Depending on what OS you are running you would need something similar to
this on unix style OS in httpd.conf or vhosts.conf. You would also need to
configure the associated DNS entries for www.myApp.example.com namely the A
record and the www record.

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

#
# myApp
#
<VirtualHost 10.10.10.10:80>
    ServerAdmin webmaster@xxxxxxxxxxx
    ServerName www.myApp.example.com
    ServerAlias myApp.example.com
    DocumentRoot /var/www/html/myApp
    ErrorLog /var/log/apache2/myApp.example.com/error_log
    CustomLog /var/log/apache2/myApp.example.com/access_log common
</VirtualHost>
#

Hope this helps

------------------------------------
Peter Nyamukusa
Email: petern@xxxxxxxxxxxxxxxxxx
AIM: petenya
 
-----Original Message-----
From: Ken Loomis [mailto:kloomis@xxxxxxxxxxxxxxxx] 
Sent: Thursday, March 29, 2007 2:00 PM
To: users@xxxxxxxxxxxxxxxx
Subject:  Relative path with virtual host

Hello:

This has been bugging me for some time.

If I have a directory structure like this:

/var/www/html/myApp
/var/www/html/myFiles

With this URL:  www.example.com/myApp
I can reference myFiles as ../myFiles

but with this URL: www.myApp.example.com, using a virtual host,
I cannot access myFiles with ../myFiles

Why is this, and can safely I fix this with some directive in the 
Virtual Host? I have a number of libraries I'd like to share across 
several applications.

Any help is much appreciated,

Ken









---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux