Apache vhost - debug web request


 
Thread Tools Search this Thread
Operating Systems Linux Apache vhost - debug web request
# 1  
Old 11-03-2015
Linux Apache vhost - debug web request

Hello all,

I have several vhost and not sure which vhost is serving the requests to my url
http://www.mydomain.tld i have ssh access to the web server

is there a way e.g curl to know exactly which vhost served the request.

one of my friend suggested logs but i want to find another alternative.

thanks.
# 2  
Old 11-03-2015
Please clarify your configuration. Are you suggesting that you have a main URL that is set up to be redirected to vhosts? Is this a load balancing scheme, round robin,... Are these vhosts on the same system?
# 3  
Old 11-04-2015
there are no redirections and no load balancing.

yes, all vhosts are running on same server

thanks
# 4  
Old 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:
# 5  
Old 11-04-2015
this is a nice tip.thanks

from outside without any ssh access to the server is there a way to debug this ?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. OS X (Apple)

Web Request log

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

2. Web Development

Vhost issue in apache ..Unable to figure out

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

3. Red Hat

Apache not using second vhost..

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

4. Programming

Creating a web based id request form

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

5. Cybersecurity

configure apache to accept request form specific IP

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

6. Web Development

Apache vhost redirect to a cgi file

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

7. Web Development

Copy and forward apache http request

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

8. Web Development

Apache log with long strings of Xs in GET request

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

9. BSD

forwarding the request to the Outlook Web Access

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

10. Programming

Request help to debug errors while running in 'C'

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
Login or Register to Ask a Question