954,242 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Apache - Virtual Directory

Hi,

So far, I worked with IIS. So I can map network drive and create a virtual directory from the maped drive.

Now, I have moved to Apache, but I don't know if Apache can do the same thing. Can anyone tell me? If can, how to do it?

Thanks in advance.

Roda

roda
Newbie Poster
11 posts since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

Yes apache can do the same thing, Here is some documentation that might be very helpful:
http://httpd.apache.org/docs/vhosts/
http://httpd.apache.org/docs/vhosts/name-based.html

blud
Linux Reject
Staff Writer
830 posts since Apr 2004
Reputation Points: 154
Solved Threads: 20
 

DK,

Now, I have got a litle bit understanding about virtual host.
I created a port-based virtual host as below, and it is working fine.

Listen 8080

ServerName graph.3tel.com.kh
DocumentRoot "C:/Temp"

Note: C: is local hard drive.

But when I changed DocumentRoot to "Z:/Temp" where Z: is a maped drive, it was not working. And I got the following error message:

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

--------------------------------------------------------------------------------

Did I miss any configuration? Or anything wrong? Please help.

Kind Regards,

Roda

roda
Newbie Poster
11 posts since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

Just for kicks try it with a \ ...

DocumentRoot "Z:\Temp"

DanceInstructor
Posting Whiz
368 posts since Feb 2005
Reputation Points: 17
Solved Threads: 14
 

Hi,

I tried it, but still didn't work. The same error message displayed.

Thanks,

Roda

roda
Newbie Poster
11 posts since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

Hi,

Anyone have any idea to help me on this problem? I'm stuck with it.

Please help!!!!

Thank you in advance for any help.

Roda

roda
Newbie Poster
11 posts since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

I found some info at this link , dunno if it will be helpful or not...

DanceInstructor
Posting Whiz
368 posts since Feb 2005
Reputation Points: 17
Solved Threads: 14
 

Virtual Host in apache is making one apache server appear to run two or more webservers on one serer.

What you are looking for is an alias
Check out this page: http://httpd.apache.org/docs-2.0/mod/mod_alias.html#alias

simoncharris
Newbie Poster
1 post since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: