Sponsored Content
Full Discussion: Apache IP question
Special Forums IP Networking Apache IP question Post 302905881 by Lost in Cyberia on Sunday 15th of June 2014 07:16:43 PM
Old 06-15-2014
Apache IP question

Hey everyone. Ok I have a question..well a few questions actually, but I'll try to have them make sense.

Ok, I work in a data center and we manage people's servers. One client has an apache server. This apache server has 1 single IP address. When I do ifconfig, it's inet address is 1 address.

That being said, he has multiple different, independent sites on the sever. When I do a dig command to each individual site that's hosted by this one sever, I get a different IP. None of the IP's for those sites match the main IP of the server.

With that in mind when I look at the virtual host directives for each individual site, I see the :<VirtualHost *:80>
Meaning that it's listening for any IP. But most of the sites have this "Listen to all" directive.

So with all of that knowledge, my main question is thus. Where are the individual sites's IP's coming from? Again when I do a dig for these sites, they definitely have an IP address, all of them unique as well. But I see no reference to them in the vhost files. The only thing in their vhost files is the 'listen for all addresses" directive


What's interesting is that when I type in the individual site's IP address, I get an apache page that says site is under construction etc.... but when I type in it's domain name, the site loads properly. So if the VirtualHost directive to listen to all IP's is in play, why does the site's IP's not work when typed into a browser?

Thanks everyone in advance!
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Apache auth question

While not technically a unix question, I was hoping for some help from you all- I've got an Apache 1.3.x server, and I am using basic auth from the pam_auth module and winbind on the back of that. What I get is a relaly sleek authentication for my Windos domain users, however, as they are wont... (1 Reply)
Discussion started by: loadc
1 Replies

2. Solaris

Apache web server question

Hi - Maybe not the right forum for this but I will ask anyway.. I recently installed apache on my ultra 10 - solaris 9... Working okay - and I have some docs in my htdocs directory that I can access through a web browser.. Now I want to get a bit fancy and change the home page so I can... (2 Replies)
Discussion started by: frustrated1
2 Replies

3. Cybersecurity

Apache Question - Securing against unwanted use with cable modem

I have built a Linux machine in my home using Mepis Linux and I'm running Apache on it. I want to use Apache on my machine and use it as testing area for web pages and other applications. I use a cable modem to connect to the internet. The Linux box is connected to a router, which connects... (3 Replies)
Discussion started by: Doctor_Morbius
3 Replies

4. Solaris

Installing APACHE - simple question

Ok, this may be a simple question, but I am unable to find an answer. I am trying to install apache 2.2 on a Solaris 9 box (sparc). I downloaded it from sunfreeware, and under /usr/local/apache2/doc/apache2/INSTALL they describe the installing procedure as: $ ./configure --prefix=PREFIX ... (4 Replies)
Discussion started by: fidodido
4 Replies

5. UNIX for Dummies Questions & Answers

Apache question

Folks; What's is the risk of running 2 Apache servers on the same machine, one for testing & the other for Production? (using 2 different ports of course) Thanks (1 Reply)
Discussion started by: moe2266
1 Replies

6. UNIX for Advanced & Expert Users

Double question: Apache mod_proxy and force connection over specific interface

Double question here ... Running on Debian Etch and Apache 2.0 1) Using mod_proxy and/or mod_proxy_http in apache 2.0. The basics of using mod_proxy are pretty simple so long as you're using a static config. I'm trying to figure out how to do it dynamically - that is, allow the entry of a... (4 Replies)
Discussion started by: Halfwalker
4 Replies

7. UNIX for Advanced & Expert Users

Question regarding Apache

How can I know which Multi-Processing Module does my Apache use or implement. Module Index - Apache HTTP Server I also wish to know what is the maximum number of clients can my apache process at a given instance of time. Please help me calculate the same. Also, wanted to know if the... (0 Replies)
Discussion started by: mohtashims
0 Replies

8. Red Hat

Apache question - virtual host related

Hi folks, I recently read about Apache virtual host and was able to configure that as well. I used name based virtual host (lets say http://vhost1.example.com) and it worked just fine. Then I configured another named based virtual host on same apache server (lets say http://vhost2.example.com)... (2 Replies)
Discussion started by: freebird8z
2 Replies

9. Web Development

Apache module development on apache 2.2

Hi, I'm new to developing modules for Apache. I understand the basics now and can develop something simple which allows a 'GET' request to happen, but what I want to do is actually 'POST' information to my site. I know the basic POST Request works and I can see that it is post by looking at... (2 Replies)
Discussion started by: fishman2001
2 Replies

10. Red Hat

Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-la

Have no idea on what the below error message is: Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher -buildfile build.xml dist. Any help? (3 Replies)
Discussion started by: gull05
3 Replies
apache(1M)                                                System Administration Commands                                                apache(1M)

NAME
apache - Apache hypertext transfer protocol server overview DESCRIPTION
apache consists of a main server daemon, loadable server modules, some additional support utilities, configuration files, and documenta- tion. FILES
The apache HTTPD server is integrated with Solaris. The following files specify the installation locations for apache: /etc/apache Contains server configuration files. A newly-installed server must be manually configured before use. Typically this involves copying httpd.conf-example to the httpd.conf file and making local configuration adjustments. /usr/apache/bin Contains the httpd executable as well as other utility programs. /usr/apache/htdocs Contains the Apache manual in HTML format. This documentation is accessible by way of a link on the server test page that gets installed upon fresh installation. /usr/apache/include Contains the Apache header files, which are needed for building various optional server extensions with apxs(8) /usr/apache/jserv Contains documention for the mod_jserv java servlet module. Documention can be read with a web browser using the url: file:/usr/apache/jserv/docs/index.html /usr/apache/libexec Contains loadable modules (DSOs) supplied with the server. Any modules which are added using apxs(8)are also copied into this directory. /usr/apache/man Contains man pages for the server, utility programs, and mod_perl. Add this directory to your MANPATH to read the Apache man pages. See NOTES. /usr/apache/perl5 Contains the modules and library files used by the mod_perl extension to Apache. /var/apache/cgi-bin Default location for the CGI scripts. This can be changed by altering the httpd.conf file and restarting the server. /var/apache/htdocs Default document root. This can be changed by altering the httpd.conf file and restarting the server. /var/apache/icons Icons used by the server. This normally shouldn't need to be changed. /var/apache/logs Contains server log files. The formats, names, and locations of the files in this directory can be altered by various configuration directives in the httpd.conf file. /var/apache/proxy Directory used to cache pages if the caching feature of mod_proxy is enabled in the httpd.conf file. The location of the cache can also be changed by changing the proxy configuration in the httpd.conf file. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWapchr | +-----------------------------+-----------------------------+ | |SUNWapchu | +-----------------------------+-----------------------------+ | |SUNWapchd | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5) http://www.apache.org NOTES
In addition to the documentation and man pages included with Solaris, more information is available at http://www.apache.org The Apache man pages are provided with the programming modules. To view the manual pages for the Apache modules with the man command, add /usr/apache/man to the MANPATH environment variable. See man(1) for more information. Running catman(1M) on the Apache manual pages is not supported. SunOS 5.10 8 Aug 2000 apache(1M)
All times are GMT -4. The time now is 12:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy