creating an alias on vhost localhost pointing to an alias...
Posted: 08. November 2010 21:14
goodluck.dyndns.org/happytimes is setup in vhosts as an alias:
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):
How do I do that? What I coded above "Alias /goodluck/happytimes", does not work.
- 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>
...
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.