LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-02-2005, 01:35 AM   #1
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Rep: Reputation: 30
a little apache/squid-problem


hi all,

after a little reconfig of my firewall Iīve a little problem accessing my vhosts from lan.
When Iīm trying to access the domain2.com-Host the site for domain1 appears!

Firewall config is:
LAN --> EXTERN: only via squid:3128
LAN --> WEBSERVER: only via squid:3128

WEBSERVER config:
Listen 80
...
NameVirtualHost 192.168.1.1
<VirtualHost 192.168.1.1>
ServerName www.domain1.com
ServerAlias domain1.com
...
</VirtualHost>
<VirtualHost 192.168.1.1>
ServerName www.domain2.com
ServerAlias domain2.com
...
</VirtualHost>

I donīt understand the problem, client connects to squid on port 3128 - squid goes (like normal external access) on īlocalhostī to port 80 ????!!!!
What did I overlooked?...think Iīm too blind this morning ;-)
 
Old 05-02-2005, 02:42 AM   #2
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Original Poster
Rep: Reputation: 30
ok,...in squid.conf I enabled:

Code:
httpd_accel_uses_host_header on
...now it works! :-)
BUT, is this the correct solution ????????????
 
Old 05-02-2005, 02:43 AM   #3
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Original Poster
Rep: Reputation: 30
(http_accelerator is NOT enabled!!!!!!!!)
 
Old 05-13-2005, 01:09 AM   #4
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Original Poster
Rep: Reputation: 30
*pushing up* :-)

got the same prob again....the host_header option does not work.

-> in the original config 2 vhosts were enabled and worked fine
-> now (above config look at post 1) SSL activated for a subdir

<Directory /var/www/html/domain1/subdir>
AllowOverride None
AuthType Basic
AuthUserFile /etc/httpd/.password
<Limit GET POST>
require user Tom
</Limit>
SSLRequireSSL
</Directory>

=> the virtual hosting works no more. why? tried to edit ssl.conf, but nothing.

would be pleased if someone could help!
 
  


Reply



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
Problem with Squid + Apache Integration Charles Daniel Linux - Security 8 09-22-2004 05:49 AM
squid and apache alaios Linux - Networking 6 06-07-2004 10:20 AM
Using Squid and Apache in order to better serve pages xbaez Linux - Networking 2 04-07-2004 05:26 PM
Squid and Apache ???? vvandam Linux - Networking 9 07-18-2003 01:35 PM
Squid & Apache 80s Linux - Networking 2 01-10-2003 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:09 AM.

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
Open Source Consulting | Domain Registration