11-04-2015
The request is processed by a virtual host with a matching ServerName or ServerAlias. If no one matches the url, the first virtual host defined will process the request.
You can dump some configuration settings, including all vhosts, with httpd -S or apachectl -S.
You also might consider defining a custom log format including the %v specifier to print out the ServerName handling this particular request.
This User Gave Thanks to hergp For This Post:
10 More Discussions You Might Find Interesting
1. Programming
I run, 2 'C' Files, gapw.c and getkey.c, but I get the following errors :-
I) $ gcc gapw.c
gapw.c: In function `main':
gapw.c:96: warning: cast to pointer from integer of different size
/tmp/cck4I8mW.o(.text+0x227): In function `main':
: undefined reference to `getprofilestring'... (1 Reply)
Discussion started by: marconi
1 Replies
2. BSD
Hello,
FreeBSD is not forwarding the request to the Outlook Web Access. Is there some process that needs to be run in order for this to start?
The server was rebuilt and is pingable.
Any suggestion is greatly appreciated.
Thank you,
Gish (1 Reply)
Discussion started by: TESTQWER
1 Replies
3. Web Development
Hi everybody,
I was looking at my apache2 log and I found GET requests as such:
Some ip - - "GET... (4 Replies)
Discussion started by: z1dane
4 Replies
4. Web Development
Hello,
I am using apache 2.2 and I need to have certain http requests (those including example.com for instance) to be executed normally and forwarded to another server.
With mod_rewrite, I could easily forward but then the input request would not be executed on my server. Right?
Am I... (1 Reply)
Discussion started by: JCR
1 Replies
5. Web Development
Hi guys, I've been trying to figure this out all day however havent managed to as of yet.
I have a server called netmon (network monitoring) which runs a multitude of programs to monitor the network.
I also have a cname pointing to netmon called smokeping.
At the moment to access smokeping... (0 Replies)
Discussion started by: JayC89
0 Replies
6. Cybersecurity
Hi,
What should I change in the httpd.conf so that the apache will accept request from page from specific IP and deny all the rest IP.
I am reading the document of the apache but it is very long (700 pages) and I searched but I could not find something about this.
So if someone can explain... (0 Replies)
Discussion started by: programAngel
0 Replies
7. Programming
Please pardon my ignorance, but I need to create a web-based form which can be used to request access to the unix servers in our environment. It just needs to have input fields for basic info (name, dept., etc.), and perhaps a drop-down box with the names of the servers. The form will be submitted... (2 Replies)
Discussion started by: wjssj
2 Replies
8. Red Hat
I have a test setup running apache 2.2. I'm just serving up some images to my dekstop.
I can't get apache to use my second vhost entry.. I know both entries work as I switched them around in my vhosts.conf. I just can't use them both at the same time.
Can someone help me please?
my... (0 Replies)
Discussion started by: general_lee
0 Replies
9. Web Development
Hi I have vhosts configured for my sites like:
<VirtualHost ip_abc:8081>
........
.....
....
</VirtualHost>
Now I have added a new vhost but on entering the same information on some other port say:
<VirtualHost ip_abc:8082>
........
.....
....
</VirtualHost> (2 Replies)
Discussion started by: ankur328
2 Replies
10. OS X (Apple)
Hey all,
I would like to track what applications are requesting access at the unix level. is there a log or a way to capture all network access requests? Not with applications. (1 Reply)
Discussion started by: Phorn
1 Replies
LEARN ABOUT DEBIAN
devel::nytprof::apache
Devel::NYTProf::Apache(3pm) User Contributed Perl Documentation Devel::NYTProf::Apache(3pm)
NAME
Devel::NYTProf::Apache - Profile mod_perl applications with Devel::NYTProf
SYNOPSIS
# in your Apache config file with mod_perl installed
PerlPassEnv NYTPROF
PerlModule Devel::NYTProf::Apache
If you're using virtual hosts with "PerlOptions" that include either "+Parent" or "+Clone" then see "VIRTUAL HOSTS" below.
DESCRIPTION
This module allows mod_perl applications to be profiled using "Devel::NYTProf".
If the NYTPROF environment variable isn't set at the time Devel::NYTProf::Apache is loaded then Devel::NYTProf::Apache will issue a warning
and default it to:
file=/tmp/nytprof.$$.out
The file actually created by NTProf will also have the process id appended to it because the "addpid" option is enabled by default.
See "ENVIRONMENT VARIABLES" in Devel::NYTProf for more details on the settings effected by this environment variable. Try using
"PerlPassEnv" so you can set the NYTPROF environment variable externally.
Each profiled mod_perl process will need to have terminated before you can successfully read the profile data file. The simplest approach
is to start the httpd, make some requests (e.g., 100 of the same request), then stop it and process the profile data.
Alternatively you could send a TERM signal to the httpd worker process to terminate that one process. The parent httpd process will start
up another one for you ready for more profiling.
Example httpd.conf
It's often a good idea to use just one child process when profiling, which you can do by setting the "MaxClients" to 1 in httpd.conf.
Using an "IfDefine" blocks lets you leave the profile configuration in place and enable it whenever it's needed by adding "-D NYTPROF" to
the httpd startup command line.
<IfDefine NYTPROF>
MaxClients 1
PerlModule Devel::NYTProf::Apache
</IfDefine>
VIRTUAL HOSTS
If your httpd configuration includes virtual hosts with "PerlOptions" that include either "+Parent" or "+Clone" then mod_perl2 will create
a new perl interpreter to handle requests for that virtual host. This causes some issues for profiling.
If "Devel::NYTProf::Apache" is loaded in the top-level configuration then activity in any virtual hosts that use their own perl interpreter
won't be profiled. Normal virtual hosts will be profiled just fine.
You can profile a single virtual host that uses its own perl interpreter by loading "Devel::NYTProf::Apache" inside the configuration for
that virtual host. In this case do not use "PerlModule" directive. You need to use a "Perl" directive instead, like this:
<VirtualHost *:1234>
...
<Perl> use Devel::NYTProf::Apache; </Perl>
...
</VirtualHost>
LIMITATIONS
Profiling mod_perl on Windows is not supported because NYTProf currently doesn't support threads.
SEE ALSO
Devel::NYTProf
AUTHOR
Adam Kaplan, "<akaplan at nytimes.com>" Tim Bunce, <http://www.tim.bunce.name> and <http://blog.timbunce.org> Steve Peters, "<steve at
fisharerojo.org>"
COPYRIGHT AND LICENSE
Copyright (C) 2008 by Adam Kaplan and The New York Times Company.
Copyright (C) 2008 by Steve Peters.
Copyright (C) 2008 by Tim Bunce.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or,
at your option, any later version of Perl 5 you may have available.
perl v5.14.2 2010-06-10 Devel::NYTProf::Apache(3pm)