We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,055 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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

4
Contributors
7
Replies
3 Months
Discussion Span
7 Years Ago
Last Updated
8
Views
roda
Newbie Poster
11 posts since Jul 2004
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 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
Moderator
836 posts since Apr 2004
Reputation Points: 154
Solved Threads: 22
Skill Endorsements: 0

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
<VirtualHost *:8080>
ServerName graph.3tel.com.kh
DocumentRoot "C:/Temp"
</VirtualHost>

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
Skill Endorsements: 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
Skill Endorsements: 0

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
Skill Endorsements: 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
Skill Endorsements: 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
Skill Endorsements: 0

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
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0812 seconds using 2.78MB