Apache


 
Thread Tools Search this Thread
Special Forums IP Networking Apache
# 1  
Old 07-02-2002
Apache

I want to have multiple domains to be configured in apache web server on redhat linux

can i have that without DNS server being configured. What all i have to do for that.What all to configure ?


please note that i need to access the site by its name not by IP . I want this in a LAN . I dont want to be accessed by internet.


Please help me

Vijay

Last edited by Vijayanand; 07-03-2002 at 09:27 AM..
# 2  
Old 07-02-2002
you can achieve this by using virtual hosts.

the first step is enable bindaddress in httpd.conf file, so that is listen to ip address or url

BindAddress *

the second step is to place an ip address in the NameVirtualHost that is

NameVirtualHost xx.xx.xx.xx

virtualHost xx.xx.xx.xx
ServerName www.mydomain.com

virtualHost xx.xx.xx.xx
ServerName www.myseconddomain.com

Note:
xx should be an ip address.
you will only be able to access the web site only through an iP address without configuring DNS
# 3  
Old 07-03-2002
Vijay,

It looks as if you are trying to host a web site on your home box, is this correct?

If it is then 1) does your connection have a static IP address, 2) does your domain registrar offer name server support (buy this I mean will they let you change the IP address of the domain on their name server - thus solving your dns issue - I dont think many will).

If both of the above are true then you can log in to your registrar and say domain "www.a.com" = ip address "123.123.123.123" (your box). Then you can configure apache as discribed by the other people in Unix.com to set up virtual hosts (so effectivly you can put as many web sites on one address as you like).

If the answer to the questions is no then you have to look at something like "www.easydns.com", they provide redirection to dynamic IP address's (I am sure there are other people that do this but they where at the top of the google search).

W
# 4  
Old 07-03-2002
uhhh... he doesnt need to know anything about his ISP provided IP address if he only wants to be accessed by his local network.
What needs to be done is make sure that your clients know that your.local.server = 192.168.0.1 and make a virtual host in httpd.conf for your.local.server.
I know that doesnt help very much because i am not quite sure how to achieve this myself.
# 5  
Old 07-04-2002
Fridge,

Sorry Vijay only added the "lan" bit after I had replied, hence why my reply looks a bit mad.

Vijay, The way to do this is to create a hosts entry on each of the boxes that you want to connect to the Apache server.

In *nix this would be in the file /etc/hosts
in Windows (at least in Nt and 2000 [not sure about the rest]) it is in "windows"\system32\drivers\etc\hosts

Basicly you have server "a.a.a.a" (you apache server) that you want to run domain "www.test.com"

you add a line in the host file:

a.a.a.a www.test.com (and optional) test.com

If you want to add more than one;

a.a.a.a www.test.com www.test1.com www.test2.com

Then you still have to set-up virtual hosts so that when the request hits your apache it knows which directory to serve your request from.

W
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. UNIX for Dummies Questions & Answers

Apache help

Hi, I am new to unix and am trying to determine if apache is installed on my server. Is there a command to determine the running version or if it is even installed. I appreciate your help. Thanks, Eric (2 Replies)
Discussion started by: ejbrever
2 Replies

4. UNIX for Advanced & Expert Users

Apache

I am tring to configure Apache so that it displays the ip address of users browsing the web in the header. mod_header is installed on my apache as default. I tried including the following in httpd.conf file but no joy Header set remoteip %{REMOTE_ADDR} I have also tried Header add... (3 Replies)
Discussion started by: hassan2
3 Replies

5. UNIX for Dummies Questions & Answers

apache

on my webserver, and im sure many of you who also run one see this all the time, but the majority of my access log is filled with attempted exploits from computers compromised by some virus (NIMBDA?) and anyway i know this is harmless to an apache/linux webserver, but its annoying, anyway, on... (5 Replies)
Discussion started by: norsk hedensk
5 Replies

6. IP Networking

Apache

I want to have multiple domains to be configured in apache web server on redhat linux can i have that without DNS server configured. What all i have to do for that.What all to configure ? And importantly i want the site be accessed by name rather IP address. Please help me ... (1 Reply)
Discussion started by: Vijayanand
1 Replies

7. IP Networking

Apache

I want to have multiple domains to be configured in apache web server on redhat linux Please help me Vijay (2 Replies)
Discussion started by: Vijayanand
2 Replies

8. UNIX for Dummies Questions & Answers

Apache!

How do you tell which apache version is currently running. the situation is that I got multiply httpd.conf files on a solaris 2.6 server and I need to tell which version is what? I have checked the httpd.conf but no joy Thanks in Advance (3 Replies)
Discussion started by: hassan2
3 Replies

9. UNIX for Dummies Questions & Answers

apache

how must httpd.conf be configured to exec the php files? (2 Replies)
Discussion started by: user666
2 Replies
Login or Register to Ask a Question