creating an alias on vhost localhost pointing to an alias...

Problems with the Windows version of XAMPP, questions, comments, and anything related.

creating an alias on vhost localhost pointing to an alias...

Postby drop_lord » 08. November 2010 21:14

goodluck.dyndns.org/happytimes is setup in vhosts as an alias:
Code: Select all
...
    ServerAlias goodluck.dyndns.org *.goodluck.dyndns.org

    DocumentRoot "D:/httpdocs/goodluck"
   <Directory "D:/httpdocs/goodluck">
       Options -Indexes FollowSymLinks MultiViews
       AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
...
# and the alias, a folder external to /goodluck
   #happytimes share, http://goodluck.dyndns.org/happytimes
    Alias /happytimes "D:/shared/happytimes"
     <Directory "D:/shared/happytimes">
       Options Indexes FollowSymLinks MultiViews
       AllowOverride All
       Order allow,deny
       Allow from all
     </Directory>
...
Under XAMPP, http://localhost points to the XAMPP configuration page (OK)
I had previously, set-up http://localhost/happytimes to point to the same folder as the alias above.
Now I want to do something more complete:

vhost definition for 127.0.0.1:80 (localhost):

Code: Select all
## now begins the complete aliases for host goodluck.dyndns.org, accessible through localhost:
...
   #happytimes share, accessible locally, http://localhost/goodluck/happytimes
    Alias /goodluck/happytimes "D:/shared/happytimes"
     <Directory "D:/shared/happytimes">
       Options Indexes FollowSymLinks MultiViews
       AllowOverride All
       Order allow,deny
       Allow from all
     </Directory>

...


How do I do that? What I coded above "Alias /goodluck/happytimes", does not work.
drop_lord
 
Posts: 14
Joined: 24. August 2010 12:11

Re: creating an alias on vhost localhost pointing to an alia

Postby JonB » 09. November 2010 02:22

Alias /goodluck/happytimes "D:/shared/happytimes"


I think it needs to be /goodluck/ "D:/shared/"

I beat this to death in this topic...
viewtopic.php?f=16&t=42207&p=166604&hilit=alias%E2%80%A6#p166604

Good Luck
' 8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: creating an alias on vhost localhost pointing to an alia

Postby drop_lord » 09. November 2010 20:39

yesssss.
thank you very much.
wow great support on a very necessary item (apache).
drop_lord
 
Posts: 14
Joined: 24. August 2010 12:11


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 136 guests