On 2016-07-15 10:39, Per Jessen wrote:
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:
What is your "DocumentRoot" ?
/etc/apache2/default-server.conf: DocumentRoot "/srv/www/htdocs"
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".
Ah. I see...
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.
Yes, I thought so.
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
Ah! It works. I was doing it wrong: Alias /data/waterhoard/mirrors /mirrors Thanks! :-) And zypper can use my mirrored repos happily. :-)) -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)