LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-13-2014, 08:53 AM   #1
Glenn D.
Member
 
Registered: May 2009
Location: ACT - Australia
Distribution: Opensuse x86_64 (Latest)
Posts: 132

Rep: Reputation: 26
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
 
Old 05-13-2014, 12:51 PM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by Glenn D. View Post
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 ?
yes, unless you have some weird internal URL rewriting.

Quote:
Originally Posted by Glenn D. View Post
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"
A Firefox 29 browser is trying to access http://127.0.0.1/ and receives a status 302 "Moved Permanently". The server is telling it that the desired resource is not available where the browser looked for it, but somewhere else. We don't see the location that the server is giving as a substitute, but obviously it's /cacti/install/, because that's what the browser requests a split second later.
However, there's probably a configuration error, because on retrieving the resource it was told, the browser gets a 404 status ("Not Found").
The third line is to be considered as a separate story - browsers often try to retrieve an icon they might display next to the URL in the address bar, but your server doesn't offer such an icon. Hence another 404 "Not Found". That's nothing to worry about.

[X] Doc CPU
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
url redirect to location sunlinux Linux - Newbie 1 05-12-2014 07:46 AM
LXer: Google I/O Android News: Location, Location, Location (Plus Cloud Messaging and Bluetooth) LXer Syndicated Linux News 0 06-05-2013 01:00 PM
apache2 virtualhost same URL different location bkone Linux - Server 8 01-22-2013 12:58 PM
location.hrefs not being populated in IE url blaze7 Linux - Newbie 1 08-18-2006 06:10 PM
(alt+f) + enter url default location ergo_sum Linux - Newbie 2 09-18-2003 01:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration