Carlos E. R. wrote:
Hi,
I'm trying to setup a local apache server to serve a mirror of some repos.
In httpd.conf.local I have written:
<Directory /data/waterhoard/mirrors> Options FollowSymLinks Indexes Includes AllowOverride All
IndexOptions FancyIndexing \ ScanHTMLTitles \ NameWidth=* \ FoldersFirst
order deny,allow deny from all allow from localhost .valinor 192.168.1.51 192.168.1.52
</Directory>
What is your "DocumentRoot" ?
However, browsing to "http://localhost/data/waterhoard/mirrors" produces error 404, Object not found!
The directory in the filesystem is indeed correct.
That URL would look for DocumentRoot/"data/waterhoard/mirrors".
However, I have the file /srv/www/htdocs/index.html, which contains:
<a href="/ficheros/mirrors" title="Mirrors">[Mirrors]</a> <br>
Okay, I assume that means your DocumentRoot is "/srv/www/htdocs". To access /data/waterboard etc, you need to alias it so apache can reach it.
What would be the correct structure so that:
"http://localhost/data/waterhoard/mirrors" works, or even better, "http://localhost/mirrors"
The later I think should be just an alias, but first I must make the prior http request to work.
I think this is what you need: Alias /mirrors /data/waterhoard/mirrors -- Per Jessen, Zürich (14.1°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org