logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: FollowSymlink problem on Windows
Author
tkorsdal



Joined: 28 Jul 2006
Posts: 2

PostPosted: Fri 28 Jul '06 13:42    Post subject: FollowSymlink problem on Windows Reply with quote

I have installed XAMPP as to have a local php development environment on my WinXP box. Apache and PHP seems to work fine.

In the document root I have defined a shortcut to my php development directory.

Apache won't follow this shortcut. I haven't changed anything in the httpd.conf.

It works fine on my linux server. What am I missing?

Thx in adv.

Tage
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Fri 28 Jul '06 14:31    Post subject: Reply with quote

Windows does not support Symlinks! Here is Windows the issue!
If you need a shortcut. Create a folder with the shortcut name and into it create a index.php

index.php
Code:

<?php
$host  = $_SERVER['HTTP_HOST'];
$uri   = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$extra = 'path/to/your/folder/';
header("Location: http://$host$uri/$extra");
exit;
?>


or something like that...
Back to top
tkorsdal



Joined: 28 Jul 2006
Posts: 2

PostPosted: Thu 03 Aug '06 18:24    Post subject: Reply with quote

Aaa I see!

Thanx alot! Smile
Back to top


Reply to topic   Topic: FollowSymlink problem on Windows View previous topic :: View next topic
Post new topic   Forum Index -> Apache