-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Star Liu wrote:
> I'm learning to use php. when i drop my Welcome.php into /var/www,
> which is the default root directory for localhost, and visit it by
> http://localhost/Welcome.php, it can display the html normally; but i
> want my php files in another place like /root/MyLife/LifeOS/StarLiu/,
> so I add a entry into /etc/apache2/sites-available/default, like this:
> 
> Alias /php/ "/root/MyLife/LifeOS/"
> <Directory "/root/MyLife/LifeOS/">
>               Options Indexes FollowSymLinks MultiViews
>               AllowOverride None
>               Order allow,deny
>               allow from all
> </Directory>
> 
> then i visit it by http://localhost/php/StarLiu/Welcome.php, but it
> pops out the download dialog to download the Welcome.php file.
> 
> it seems i didn't configure it correctly, how can i fix it? thanks
> 
This is probably better directed at an apache list, but from memory you
need to take your handler directives and nest them in the directory tags.

Or apply them globally.

Sorry for the vague reply

- --
Rich Healey - iTReign      \    .''`.   /         [EMAIL PROTECTED]
Developer / Systems Admin   \  : :' :  /        [EMAIL PROTECTED]
AIM: richohealey33           \ `. `'  /             [EMAIL PROTECTED]
MSN: [EMAIL PROTECTED] \  `-  / [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjsp9MACgkQLeTfO4yBSAdsMgCeLkknfFQRAUxysVI986Qq7wYZ
cGwAoIc2ZT96ltynMu4UcHDALmzzj6Rd
=JNWr
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to