Redhat Apache

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Redhat Apache
# 1  
Old 12-02-2013
Redhat Apache

How is it possible to tied a IP address to folder in apache, so when someone put the ip in there browser they land in that folder?
# 2  
Old 12-02-2013
In the httpd.conf configuration file, you can setup VirtualHosts to point to multiple IPs and folders.

Something to the effect of:

Code:
<VirtualHost 192.168.1.10:80>
    DocumentRoot /var/www/html/site1 <folder on your server>
    ServerName www.site1.com
</VirtualHost>

<VirtualHost 192.168.1.11:80>
    DocumentRoot /var/www/html/site2
    ServerName www.site2.com
</VirtualHost>

I recommend checking out Apache's website. Their documentation is very good.
# 3  
Old 12-02-2013
Yes I have tried this, but it does not seem to work, is there somewhere else I must configure to get it to work?
# 4  
Old 12-02-2013
Can you please be more specific about what "does not seem to work"? There's a number of reasons why it might not work. For example, does the server have two IP addresses?; Are SELinux contexts set correctly on those directories and their files?; Are SELinux booleans set for if the directories are home directories?; Are the appropriate firewall ports open?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 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 Advanced & Expert Users

Sort command results are different in Redhat 4 vs Redhat 5

Hi, I am having a text file with the following contents ########### File1 ########### some page1.txt text page.txt When I sort this file on Red Hat 5, then I get the following output ########### File1 ########### page1.txt page.txt some (3 Replies)
Discussion started by: sarbjit
3 Replies

4. UNIX for Dummies Questions & Answers

Redhat 5.8 to 6.0

Hi, Currently running Redhat 5.8, I am thinking about upgrading to 6. After the upgrade, in case, I want to downgrade. How would I do that? Please let me know. Thanks. (2 Replies)
Discussion started by: samnyc
2 Replies

5. Red Hat

How to start the right instance of Apache on RedHat server

Hi, I have 2 apache instance on my machine (RedHat), and i need to start the "apache2" after any reboot but could not find the way ( searching into "httpd.conf" ), so i'am starting "apache2" manually. After a reboot, none of them starts and when i when doing : httpd -k start, i got "apache"... (14 Replies)
Discussion started by: mehdi1973
14 Replies

6. UNIX for Advanced & Expert Users

Where to set the right "Apache" to run after reboot on a RedHat 5 machine ?!

Hi, I'am working on a RedHat server (V5) and having on it 2 Apache instances, but after each reboot i have the wrong one starting so that i have to stop it doing "httpd -k stop" and than launch the right one doing "/etc/init.d/httpd -k start". For more Details, you may see the link i inserted... (4 Replies)
Discussion started by: mehdi1973
4 Replies

7. SuSE

redhat

i just bought a redhat 9.0 book which comes with the operating system and Ive install it as a server however Im having difficulties installing Swat and I just wonder if I have to spend buy an enterprise server or what ? (1 Reply)
Discussion started by: keliy1
1 Replies

8. Linux

redhat

hello people i just installed redhat, everything seemes to be fine, but when i start it, it boots up normally and starts firstboot or whatever, then it opens something, i can move the mouse for a while(thats all i see.. first the X then an arrow..) but then the whole computer freezes.. i think the... (3 Replies)
Discussion started by: thenewestuser
3 Replies

9. UNIX for Dummies Questions & Answers

RedHat

Hi all, I'm installing RedHat 7.0 on a laptop. As it's a dual boot with win2k I make a boot sector instead of using the MBR. After the install I mark the boot sector active in windows then I can boot into Linux. First question. When I make the boot sector active it deletes the swap... (3 Replies)
Discussion started by: merlin
3 Replies

10. UNIX for Dummies Questions & Answers

redhat 6.2 : Apache + PHP4

Hello, how are you all , I am having a hard time here I've got my Linux Redhat 6.2 server , with pre-instalation of redhat. anyway , I installed mysql (not rpm) and its working very well, but I faced lot of trouple with PHP4. Apache 1.1.12 was installed through rpm package and I updated... (1 Reply)
Discussion started by: t_zone
1 Replies
Login or Register to Ask a Question