Re: Re: possible to add multiple locations for the document root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 21, 2010 at 12:34 PM, e-letter <inpost@xxxxxxxxx> wrote:
> I tried to use the command 'Alias', to try and use the program
> phppgadmin which was extracted to /path/to/phppgadmin:
>
> DocumentRoot "/var/www/html"
> Alias /localhost/target /usr/local/phppgadmin/phppgadmin

Alias refers to the path in the URL. For the URL
'http://localhost/target', the path is '/target'.

http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias

> <Directory /localhost/target>

Directory refers to physical directories on disk, not to the URL space.

http://httpd.apache.org/docs/2.2/mod/core.html#directory

> Order allow,deny
> Allow from all
> </Directory>
>
> After stopping and restarting the web server, when I navigate the web
> brower to 'http://localhost/target' I receive an error 404 page. In
> the phppgadmin directory there are various php pages, e.g. login.php:
>

Fix the above errors first.

Cheers

Tom

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux