logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Question about alias and change directory www.
Author
dan



Joined: 21 Oct 2009
Posts: 11

PostPosted: Wed 06 Oct '10 9:02    Post subject: Question about alias and change directory www. Reply with quote

Hi all,

I have a problem, I´m trying to setup an alias and I cannot make work this (sorry for my english).

Ok, I have many sites working fine, apache and www directory are in C: but I need to move only www directory from C: to D:

I try several times with alias in virtual host directive, but nothing work.
Please, could you write for me a sentence that works, I will change and try for me configuration or if you know another easy way... Very Happy

thanks for your help.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 06 Oct '10 15:18    Post subject: Reply with quote

You have to change
Code:

DocumentRoot "C:/Apache22/htdocs"

and
Code:

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/Apache22/htdocs">


Change the paths and restart apache
Back to top
dan



Joined: 21 Oct 2009
Posts: 11

PostPosted: Wed 06 Oct '10 15:40    Post subject: Reply with quote

Thanks a lot, but I need to change only one site, not all, this code is for all websites, but I need to move only one.

Cheers !
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 06 Oct '10 15:58    Post subject: Reply with quote

You are using vhosts? Sorry I haven't seen that.

It would help if you post the relevant code from the config file.
Back to top
dan



Joined: 21 Oct 2009
Posts: 11

PostPosted: Mon 11 Oct '10 10:52    Post subject: Reply with quote

Sorry .... I´m gonna put the code:

<VirtualHost xx.xx.xx.xx>
ServerName www.site1.xxx
DocumentRoot c:/folder1
</VirtualHost>
<VirtualHost xx.xx.xx.xx>
ServerName www.site2.xxx
DocumentRoot c:/folder2
</VirtualHost>
<VirtualHost xx.xx.xx.xxx>
ServerName www.site3.xxx
DocumentRoot c:/folder3
</VirtualHost>

I want to put this three folder in D: I try several times with alias and other, but nothing work.

I appreciate your help !
Back to top


Reply to topic   Topic: Question about alias and change directory www. View previous topic :: View next topic
Post new topic   Forum Index -> Apache