Map Apache PID to website


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Map Apache PID to website
# 1  
Old 05-14-2012
Map Apache PID to website

Hello,

I have multiple apache websites running on the same server. How can I tell which apache PID is mapped to which website?
Code:
www-data  5535 18638  0 08:46 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5538 18638  0 08:46 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5576 18638  0 08:55 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5581 18638  0 08:56 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5585 18638  0 08:57 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5587 18638  0 08:57 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5590 18638  0 08:57 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5591 18638  0 08:59 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5594 18638  0 08:59 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5708 18638  0 09:02 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5709 18638  0 09:03 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  5714 18638  0 09:06 ?        00:00:00 /usr/sbin/apache2 -k start


Last edited by Franklin52; 05-14-2012 at 10:45 AM.. Reason: Please use code tags
# 2  
Old 05-14-2012
I don't think the question makes sense. As I understand it any of them can answer any request -- especially considering that 'which website' is decided after a connection happens.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Web Development

Apache website uri access

Hi i would like to grant access specific to one uri and rest of them should be denied. as follows: http://websitename/example user should be able to access htttp://websitename/other user should be denied (1 Reply)
Discussion started by: raghur77
1 Replies

2. Web Development

Ajaxterm in a website on apache

Hi All, I'm trying to get ajaxterm hosted on a website. The site is already running. I just want to add ajaxterm link to it with SSL of course. So far I've not been successful. I kinda got it running but with out SSL. Not good enough! Also, I already have configured SSL and I can access some... (0 Replies)
Discussion started by: nitin
0 Replies

3. UNIX for Dummies Questions & Answers

Need to get pid of a process and have to store the pid in a variable

Hi, I need to get the pid of a process and have to store the pid in a variable and i want to use this value(pid) of the variable for some process. Please can anyone tell me how to get the pid of a process and store it in a variable. please help me on this. Thanks in advance, Amudha (7 Replies)
Discussion started by: samudha
7 Replies

4. HP-UX

to stop the website hosted in apache ux server

Hi, we have some websites in ux servers and need to stop those websites i.e when users try to acess those websites they should not able to see those websites. we have to ideas one is .htaccess. from this we can redirect to existing 404page. and not sure if we rediredt to non- exixting page in... (1 Reply)
Discussion started by: kishan
1 Replies

5. UNIX for Dummies Questions & Answers

Map Drive From Windows To Apache Shared Drive?

Anyone know how I can map a windows drive to an apache shared drive? In my httpd.conf file, I have: Alias /merc_rpts/ "/u/merc_rpts/" <Directory "/u/merc_rpts"> Options Indexes </Directory> I'm able to bring up a browser and see the contents of this folder. In... (0 Replies)
Discussion started by: gseyforth
0 Replies

6. UNIX for Dummies Questions & Answers

Session PID & socket connection pid

1. If I use an software application(which connects to the database in the server) in my local pc, how many PID should be registered? Would there be PID for the session and another PID for socket connection? 2. I noticed (through netstat) that when I logged in using the my software application,... (1 Reply)
Discussion started by: pcx26
1 Replies

7. Programming

printing ppid,child pid,pid

question: for the below program i just printed the value for pid, child pid and parent pid why does it give me 6 values? i assume ppid is 28086 but can't figure out why there are 5 values printed instead of just two! can someone comment on that! #include<stdio.h> #define DIM 8 int... (3 Replies)
Discussion started by: a25khan
3 Replies
Login or Register to Ask a Question