[opensuse] url and directory location
Hello, Given the httpd2 -S output shown at [1]. Question 1. - What directory does this http url translate to on localhost 127.0.0.1 http://127.0.0.1/cacti/xxxx is it /srv/www/htdocs/cacti/xxxx ? Question 2. - What does this error mean and what directory [fully qualified] would it be trying to reference. ? # more /var/log/apache2/cacti-access_log 127.0.0.1 - - [13/May/2014:21:05:33 +1000] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0" 127.0.0.1 - - [13/May/2014:21:05:33 +1000] "GET /cacti/install/ HTTP/1.1" 404 984 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0" 127.0.0.1 - - [13/May/2014:21:05:33 +1000] "GET /favicon.ico HTTP/1.1" 404 984 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0" [1] Other information: httpd2 -S shows: # httpd2 -S VirtualHost configuration: ServerRoot: "/srv/www" Main DocumentRoot: "/srv/www/htdocs" Main ErrorLog: "/var/log/apache2/error_log" Mutex mpm-accept: using_defaults Mutex ssl-stapling: using_defaults Mutex ssl-cache: using_defaults Mutex default: dir="/run/" mechanism=default PidFile: "/run/httpd.pid" Define: DUMP_VHOSTS Define: DUMP_RUN_CFG User: name="wwwrun" id=30 Group: name="www" id=8 Thanks Glenn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
cacti has it's own apache configurations, depending on whether it's running under a virtual host or not. See them for how to properly configure. /etc/apache2/vhosts.d/conf.d/cacti.conf /etc/apache2/conf.d/cacti.conf -- Later, Darin On Tue, May 13, 2014 at 9:45 AM, <doiggl@velocitynet.com.au> wrote:
Hello,
Given the httpd2 -S output shown at [1].
Question 1. - What directory does this http url translate to on localhost 127.0.0.1
is it /srv/www/htdocs/cacti/xxxx ?
Question 2. - What does this error mean and what directory [fully qualified] would it be trying to reference. ?
# more /var/log/apache2/cacti-access_log 127.0.0.1 - - [13/May/2014:21:05:33 +1000] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0" 127.0.0.1 - - [13/May/2014:21:05:33 +1000] "GET /cacti/install/ HTTP/1.1" 404 984 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0" 127.0.0.1 - - [13/May/2014:21:05:33 +1000] "GET /favicon.ico HTTP/1.1" 404 984 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0"
[1] Other information: httpd2 -S shows:
# httpd2 -S VirtualHost configuration: ServerRoot: "/srv/www" Main DocumentRoot: "/srv/www/htdocs" Main ErrorLog: "/var/log/apache2/error_log" Mutex mpm-accept: using_defaults Mutex ssl-stapling: using_defaults Mutex ssl-cache: using_defaults Mutex default: dir="/run/" mechanism=default PidFile: "/run/httpd.pid" Define: DUMP_VHOSTS Define: DUMP_RUN_CFG User: name="wwwrun" id=30 Group: name="www" id=8
Thanks Glenn
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 05/13/2014 09:45 AM, doiggl@velocitynet.com.au wrote:
Hello,
Given the httpd2 -S output shown at [1].
Question 1. - What directory does this http url translate to on localhost 127.0.0.1
is it /srv/www/htdocs/cacti/xxxx ?
Question 2. - What does this error mean and what directory [fully qualified] would it be trying to reference. ?
# more /var/log/apache2/cacti-access_log 127.0.0.1 - - [13/May/2014:21:05:33 +1000] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0" 127.0.0.1 - - [13/May/2014:21:05:33 +1000] "GET /cacti/install/ HTTP/1.1" 404 984 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0" 127.0.0.1 - - [13/May/2014:21:05:33 +1000] "GET /favicon.ico HTTP/1.1" 404 984 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0"
Since those lines are from 'access_log" and NOT "error_log", why do you think this is an error? The report of the access requires was quite correct. Presumably yes, the default config has things under "htdocs", but there is no reason you can' define other roots. I have. You will notice that under "htdocs" there is already favicon.ico index.html robots.txt which are not only the kind of things you'd expect to see t the 'root' but also in your snippet above "favicon.ico" is there. Its reasonable based on such observations to deduce that yes, this is where things go. I've experimented putting "cacti/xxxx" there and getting a +ve response. Have you tied that? Experimentation is an important part of science :-) At this point I recommends reading some 'how to' documentation, since you seem a bit confused. There are a number of good books on setting up apache; try your local library. Of course there is an immense amount of stuff on-line for all grades of experience. With the on-line stuff its easy enough to do a step-and-repeat perusal until you find something that is at your level. I have a few friends with "RTFM" shirts. I will advise them that they need ones that are more uncompressing, that need to take in the wisdom of the 'Net. -- Plunderers of the world, after they, laying everything waste, run out of land, they probe even the sea: if their enemy has wealth, they have greed; if the enemy be poor, they are ambitious; neither East nor West has sated them; alone of mankind they covet poverty with the same passion as wealth. Robbery, butchery, rape they misname Empire: they make a wasteland and call it peace. -- Tacitus, Agricola 80 The speech of Calgacus the Caledonian at the battle of Mons Graupius -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
doiggl@velocitynet.com.au wrote:
Hello,
Given the httpd2 -S output shown at [1].
Question 1. - What directory does this http url translate to on localhost 127.0.0.1
Assuming no aliasing of any sot: DocumentRoot/cacti/xxxx
is it /srv/www/htdocs/cacti/xxxx ?
Yup.
Question 2. - What does this error mean and what directory [fully qualified] would it be trying to reference. ?
All requests as seen in the log are relative to DocumentRoot= /srv/www/htdocs/
# more /var/log/apache2/cacti-access_log 127.0.0.1 - - [13/May/2014:21:05:33 +1000] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0"
This is a redirect.
127.0.0.1 - - [13/May/2014:21:05:33 +1000] "GET /cacti/install/ HTTP/1.1" 404 984 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0"
404 = Page not found. (/cacti/install/)
127.0.0.1 - - [13/May/2014:21:05:33 +1000] "GET /favicon.ico HTTP/1.1" 404 984 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0"
404 = Page not found. (favicon.ico). -- Per Jessen, Zürich (8.1°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Anton Aylward
-
Darin Perusich
-
doiggl@velocitynet.com.au
-
Per Jessen