Page 1 of 1

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

PostPosted: 08. November 2010 21:14
by drop_lord
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.

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

PostPosted: 09. November 2010 02:22
by JonB
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)

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

PostPosted: 09. November 2010 20:39
by drop_lord
yesssss.
thank you very much.
wow great support on a very necessary item (apache).