Results 1 to 2 of 2
Thread: alias.conf Questions
Dec 8, 2013, 10:57 #1
- Join Date
- Jan 2012
- 0 Post(s)
- 0 Thread(s)
I discovered the alias.conf function by accident. I received a huge database-driven website on a CD from http://www.catalogueoflife.org/ and installed it on my Mac, but it doesn't work - at least not beyond the home page. I don't get any responses from their support e-mail, so I want to try and figure out how to make it work one step at a time.
The first thing I noticed is there is no index page inside the main folder (col2013/ac). Instead, the default index page is apparently @ col2013ac/public/index.php. I couldn't figure out how they make that internal index page display as the primary home page until I stumbled across a file at col2013ac/alias.conf
When I type http://col2013ac/ into my browser, this default home page displays properly. (The links don't work, but that's another problem I'll tackle next.) Here's the code from alias.conf...
Alias /col2013ac "/Applications/MAMP/htdocs/col2013ac/public/" <Directory "/Applications/MAMP/htdocs/col2013ac/public/"> Options Indexes MultiViews FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory>
# Location = /Users/davidblomsrom/Sites/col2013ac/alias.conf # The two lines below are the original code... # Alias /col2013ac "/Applications/MAMP/htdocs/col2013ac/public/" # <Directory "/Applications/MAMP/htdocs/col2013ac/public/"> Alias /Users/MyName/Sites/col2013ac "/Users/MyName/Sites/col2013ac/public/" <Directory "/Users/MyName/Sites/col2013ac/public/"> Options Indexes MultiViews FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory>
You don't have permission to access / on this server.
I can easily work around the problem by simply inserting a page named index.php inside the main folder and inserting a link on that page to /public/index.php. However, I'm intrigued by this alias function and would like learn how to use it.
Can anyone see any obvious mistakes I'm making? Is it possible it isn't working right because of some other file that also has to be modified?