[EMAIL PROTECTED] Relative path with virtual host

2007-03-29 Thread Ken Loomis

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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] Relative path with virtual host

2007-03-29 Thread Peter Nyamukusa




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 [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
AIM: petenya
 
-Original Message-
From: Ken Loomis [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 29, 2007 2:00 PM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]