logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: httpd msg and where domain name comes from
Author
bbxrider



Joined: 24 Feb 2007
Posts: 27
Location: stocktown ca

PostPosted: Fri 06 Apr '07 22:55    Post subject: httpd msg and where domain name comes from Reply with quote

running 2.2.4 on winxp pro
when checking my virtual hosts with httpd i got this msg:
Could not reliably determine the server's fully qualified domain name, using 192.168.0.105 for ServerName
my new site and virtual hosts seem to be working ok, but will this be problem at some point? where does apache try to get the domain name from? if its not there is there some way i can get it there?
and
while talking about domain names, i was going to set up the /server-status and it has the 'allow from' domain name parameter, again where does that domain name come from? i have used remote_host from the cgi environment variables, but never heard of domain name being sent to a web server? where does this domain name come from, on the requesting browser side, and where is it found in the request data coming into apache, does apache somehow make that info available ?
sorry for the newbie barrage of questions, but i found almost nothing in the manual and google
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Sun 08 Apr '07 13:34    Post subject: Reply with quote

If you use name based vhots you have to set a name like example.tld or youhave to change your vhost setup to ip-based.
Back to top
bbxrider



Joined: 24 Feb 2007
Posts: 27
Location: stocktown ca

PostPosted: Mon 09 Apr '07 0:23    Post subject: server status not working Reply with quote

i'm using 4 virtual host directives, 3 have servernames for the 3 domain names being hosted and i thought i needed the 4th without a specifically named servername to set the virtual hosting in operation?

i used the following to set up server status
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>

but when accessing from my browser on the apache machine with
localhost/server-status,
i get page not found 404
any other ideas why server status not working?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Tue 10 Apr '07 10:06    Post subject: Reply with quote

You need to do in httpd.conf

ExtendedStatus On
LoadModule status_module modules/mod_status.so

Place the location container only one time outside the vhosts!

<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>

Hope that helps
Back to top


Reply to topic   Topic: httpd msg and where domain name comes from View previous topic :: View next topic
Post new topic   Forum Index -> Apache