LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-30-2005, 04:16 AM   #1
lil_drummaboy
Member
 
Registered: May 2003
Location: Victoria, CANADA!
Distribution: OpenBSD, Slackware, Debian
Posts: 85

Rep: Reputation: 15
Squid and virtualhosting


Hi,

I have a issue with squid, it works fine but I need some advice. Here is my situation. I have an apache server with virtualdocumentroot's so any dir in /vhosts/<user>/htdocs becomes a subdomain using mod_vhost_alias and the "VirtualDocumentRoot /vhosts/<user>/htdocs/%1/" option. Aswell my DNS server is wildcarding to my webserver, therefore allowing a user to add a dir in /vhosts/<user>/htdocs/ and it then becomes a subdomain. Now to add to the complication, I am running a http-accelerating squid setup on the webserver. My apache is running on localhost:www and my squid is running on <IP>:www. Right now all my domains, including subdomains need to be listed in /etc/hosts like "127.0.0.1 domain.com www.domain.com media.domain.com" etc. It is obvious this defeats the purpose of my subdomaining system, here is my question. How can I make squid use any domain and subdomain easier without having to add it to /etc/hosts? I have thought about a bind server on my webserver pointing everything to 127.0.0.1 but I don't even know how to setup squid to do that. Even still, there should be an easier way then a 127.0.0.1 bind.

Any ideas would be great. Thanks.

Last edited by lil_drummaboy; 01-30-2005 at 04:19 AM.
 
  


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
Multidomain virtualhosting with ssl petterg Linux - Software 12 12-06-2004 05:44 AM
squid message customization, hiding squid versioin rajnishmishra Linux - Networking 0 11-27-2004 03:55 AM
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard Niceman2005 Linux - Software 1 11-24-2004 02:29 PM
Squid load testing software / Squid optimisation? gundelgauk Linux - Networking 2 08-31-2004 07:36 PM
ftp problems after change to virtualhosting dsiguy Linux - General 0 03-10-2003 06:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:55 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
Open Source Consulting | Domain Registration