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

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

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

Postby bruceaj » 18. December 2012 06:09

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
bruceaj
 
Posts: 22
Joined: 15. December 2012 17:37
XAMPP Version: 5.6.3
Operating System: Windows 8

Re: Config alias_module doesn't seem be working.

Postby bruceaj » 18. December 2012 14:23

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>
bruceaj
 
Posts: 22
Joined: 15. December 2012 17:37
XAMPP Version: 5.6.3
Operating System: Windows 8


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 26 guests