LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2014, 03:44 AM   #1
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Rep: Reputation: Disabled
Apache configuration


Hi,

I am using centos 6 x86. I configured apache webserver in one machine with virtual host directive. I have configured two different network ip addressess(A and B). When i try to open that website using network A client, i can open But when i try to open it from network B, I am not able to open it. From network B. i can telnet that port and i checked on webserver that port is open and no iptables is available. Could you plz help me to run that website on the client machines which have another network.
 
Old 06-12-2014, 06:43 AM   #2
battletroll
Member
 
Registered: Dec 2004
Location: Alabama
Distribution: Slackware, Solaris,Fedora, CentOS, Redhat, SGI
Posts: 65

Rep: Reputation: 18
Are you running SSL or just http???
 
Old 06-12-2014, 06:47 AM   #3
battletroll
Member
 
Registered: Dec 2004
Location: Alabama
Distribution: Slackware, Solaris,Fedora, CentOS, Redhat, SGI
Posts: 65

Rep: Reputation: 18
Example from httpd.conf

NameVirtualHost *:80


<VirtualHost *:80>
ServerName www.network_a.com
DocumentRoot /var/www/html
ErrorLog logs/A-error_log
CustomLog logs/A-access_log combined
</VirtualHost>

<VirtualHost *:80>
ServerName www.network_b.com
DocumentRoot /var/www/network_B_Doc_Root
ErrorLog logs/b-error_log
CustomLog logs/b-access_log combined
</VirtualHost>
 
Old 06-12-2014, 07:32 AM   #4
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by battletroll View Post
Example from httpd.conf

NameVirtualHost *:80


<VirtualHost *:80>
ServerName www.network_a.com
DocumentRoot /var/www/html
ErrorLog logs/A-error_log
CustomLog logs/A-access_log combined
</VirtualHost>

<VirtualHost *:80>
ServerName www.network_b.com
DocumentRoot /var/www/network_B_Doc_Root
ErrorLog logs/b-error_log
CustomLog logs/b-access_log combined
</VirtualHost>
Code:
<VirtualHost *:80>
    <Directory /public/Packages>
        Options +Indexes
    </Directory>
    ServerAdmin root@gai.net
    DocumentRoot /public/Packages
    ServerName packages.gai.net
    ErrorLog logs/packages.gai.net_error-log
    CustomLog logs/packages.gai.net-access_log common
</VirtualHost>
 
Old 06-12-2014, 07:38 AM   #5
battletroll
Member
 
Registered: Dec 2004
Location: Alabama
Distribution: Slackware, Solaris,Fedora, CentOS, Redhat, SGI
Posts: 65

Rep: Reputation: 18
Ensure this is set

NameVirtualHost *:80
 
Old 06-12-2014, 07:40 AM   #6
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by battletroll View Post
Ensure this is set

NameVirtualHost *:80
Yes this is the config. i can telnet port number 80 from network B clients.
 
Old 06-12-2014, 07:43 AM   #7
battletroll
Member
 
Registered: Dec 2004
Location: Alabama
Distribution: Slackware, Solaris,Fedora, CentOS, Redhat, SGI
Posts: 65

Rep: Reputation: 18
What does the packages.gai.net_error-log contain after client b tries to connect?
 
Old 06-12-2014, 07:48 AM   #8
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by battletroll View Post
What does the packages.gai.net_error-log contain after client b tries to connect?
Code:
[root@GAIDL-5015 ~]# cat /etc/httpd/logs/packages.gai.net_error-log
[Thu Jun 12 13:07:32 2014] [error] [client 192.168.50.32] Invalid method in request \xff\xf4\xff\xfd\x06\xff\xf4\xff\xfd\x06\xff\xed\xff\xfd\x06\xff\xed\xff\xfd\x06\xff\xed\xff\xfd\x06\xff\xed\xff\xfd\x06
[Thu Jun 12 13:07:51 2014] [error] [client 192.168.51.24] Invalid method in request \xff\xf4\xff\xfd\x06
[Thu Jun 12 14:56:20 2014] [error] [client 192.168.51.11] Invalid method in request \x03\x03\x1a
[root@GAIDL-5015 ~]#
 
Old 06-12-2014, 07:59 AM   #9
battletroll
Member
 
Registered: Dec 2004
Location: Alabama
Distribution: Slackware, Solaris,Fedora, CentOS, Redhat, SGI
Posts: 65

Rep: Reputation: 18
Try to connect with https
 
Old 06-12-2014, 08:00 AM   #10
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by battletroll View Post
Try to connect with https
No luck, any other thing to try?
 
Old 06-12-2014, 08:10 AM   #11
battletroll
Member
 
Registered: Dec 2004
Location: Alabama
Distribution: Slackware, Solaris,Fedora, CentOS, Redhat, SGI
Posts: 65

Rep: Reputation: 18
do you have mod_security installed?
 
Old 06-12-2014, 08:12 AM   #12
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by battletroll View Post
do you have mod_security installed?
I am not aware about modules. could you guide me how to install modules and how to check if it is installed and how to uninstall it.

Please
 
Old 06-12-2014, 08:14 AM   #13
battletroll
Member
 
Registered: Dec 2004
Location: Alabama
Distribution: Slackware, Solaris,Fedora, CentOS, Redhat, SGI
Posts: 65

Rep: Reputation: 18
yum list installed | grep mod_security

---------- Post added 06-12-14 at 08:14 ----------

rpm -qa | grep mod_security
 
Old 06-12-2014, 08:14 AM   #14
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by battletroll View Post
yum list installed | grep mod_security

---------- Post added 06-12-14 at 08:14 ----------

rpm -qa | grep mod_security
[CODE[root@GAIDL-5015 ~]# yum list installed |grep mod_security
[root@GAIDL-5015 ~]#
][/CODE]

Quote:
[root@GAIDL-5015 ~]# rpm -qa | grep mod_security
[root@GAIDL-5015 ~]#
 
Old 06-12-2014, 08:20 AM   #15
battletroll
Member
 
Registered: Dec 2004
Location: Alabama
Distribution: Slackware, Solaris,Fedora, CentOS, Redhat, SGI
Posts: 65

Rep: Reputation: 18
what do you have set in /etc/httpd/conf/httpd.conf

Listen ???

---------- Post added 06-12-14 at 08:20 ----------

post the httpd.conf
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to Add mod_evasive configuration to Apache configuration file.? Unknown3r Linux - Newbie 1 11-04-2012 10:09 AM
apache configuration sasser *BSD 4 09-09-2012 12:25 PM
APACHE configuration hks1233 Linux - Newbie 9 02-20-2011 02:55 PM
Migrating Apache 1.3 configuration files to Apache 2 kaplan71 Linux - Software 0 03-28-2007 11:05 AM
apache configuration? jcsg Linux - Newbie 1 06-21-2004 07:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration