Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

how to make apache see my website in a diff folder?

Posted on 2006-10-27
1
Medium Priority
?
246 Views
Last Modified: 2010-04-20
HI,

I have a folder on my d: drive called d:\mysites for example.

How do I setup an alias so I can view my sites in the "mysites" directory??

In my Apache Config file (httpd.conf)

I have:

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "someDriveLetter:/Inetpub/wwwroot"

I also want to use an alias and keep my document root the same as I have sites there as well.

I could easily move the code under the document root, but wanted to see if I could have code in two different areas and have it all served up under http://localhost


Any help appreciated.

-ws
0
Comment
Question by:Westside2004
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 14

Accepted Solution

by:
ygoutham earned 500 total points
ID: 17824634
i do not know about the windows setup but still am hazarding a guess.  there should be a directory called conf.d in your directory that has the httpd.conf (check one level up )

you can simply create a mysite.conf and add the following to that file.

# redirect to a folder which has all mysites folder

Alias /mysites   /path/to/mysites/in/a/different/folder


effectively, this will give you a redirect prompt.  you can access the alias so created with http://localhost/mysites/  which will be the above directory.

http://localhost shall continue to be your default folder.

am not sure with the windows setup again.  check if this works or else wait for someone else who knows the stuff to comment.

goutham
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Fine Tune your automatic Updates for Ubuntu / Debian
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question