Page 1 of 1

Config alias_module doesn't seem be working. [Solved]

PostPosted: 18. December 2012 06:09
by bruceaj
I am running in Window 8, XAMMP 1.8.1
I can't seem to get alias_module to work.

I have ran an index.php and an index.html file. Both fail to run.
The files are located in C:\Development\PHPProjects\GoodByeWorld

The alias I have set up in Apache htppd.conf, under <IfModule alias_module> is:

    Alias /projects/ "C:/Development/PHPProjects/GoodByeWorld/"
    <Directory "C:/Development/PHPProjects/GoodByeWorld/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>

The URL's I entered for testing were:
    localhost/projects/
    localhost/projects/index.php
    localhost/projects/index.html
All three failed with the error
    Object not found!
    The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
    If you think this is a server error, please contact the webmaster.
    Error 404
    localhost
    Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7

Re: Config alias_module doesn't seem be working.

PostPosted: 18. December 2012 14:23
by bruceaj
Solved: Changed the Alias Configuration statements to the following:
Alias /projects "C:/Development/PHPProjects/GoodByeWorld/"
<Directory "C:/Development/PHPProjects/GoodByeWorld">
Require all granted
AllowOverride None
</Directory>