httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Evans <tevans...@googlemail.com>
Subject Re: [users@httpd] Re: possible to add multiple locations for the document root
Date Thu, 21 Oct 2010 16:22:34 GMT
On Thu, Oct 21, 2010 at 12:34 PM, e-letter <inpost@gmail.com> 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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message