do you know how do Apache Alias?

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

do you know how do Apache Alias?

Postby iliad2b » 25. March 2005 12:27


can anyone tell me what the command is to create an Alias in Apache? i downloaded the latest XAMPP installer.

i would like to create the Alias that AMFPHP advises to do:


Using apache Aliases for one gateway for every virtualhost on your system.

* Create an alias in apache for your gateway.php
Alias /gateway.php /path/to/my/gateway.php
* The gateway code looks like this:
$gateway = new Gateway();
$gateway->setBaseClassPath($_SERVER['DOCUMENT_ROOT'] . "/");

i read on modules for Apache, but XAMPP install doesn't seem to support this?

Posts: 7
Joined: 18. March 2005 08:32

Postby Maller » 28. March 2005 13:21

Mod_alias is enabled in xampp
just add the line
Alias /gateway.php /path/to/my/gateway.php
to httpd.conf with the right values ofcourse, and then restart your server.

Another way would be to create a file called gateway.php and put the following content in it.
Code: Select all
header("Location: /path/to/my/gateway.php");
User avatar
Posts: 49
Joined: 06. March 2004 14:47

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 52 guests