LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-15-2013, 02:45 PM   #1
jmanjohn61
Member
 
Registered: Dec 2003
Distribution: FC2
Posts: 38

Rep: Reputation: 15
Same server- httpd port 80 index.html links to squid


I have one server running apache with a single index.html page with links like this:
<a href=http://SOME-etc-host1-host/>displayed-link1</a>
<a href=http://SOME-etc-host2-host/>displayed-link2</a>
<a href=http://SOME-etc-host3-host/>displayed-link3</a>
<a href=http://SOME-etc-host4-host/>displayed-link4</a>

Apache is running on port 80 while squid is running as a reverse proxy on port 81.

What I need is href link (and future script) to go to the same squid server port 81. for reverse proxy caching.
 
Old 04-15-2013, 03:26 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,406

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
These are on the SAME server... what's the possible point in caching??? You would really want to swap the ports over. if squid is front end to serving the site, it needs to be on port 80.
 
Old 04-15-2013, 07:18 PM   #3
jmanjohn61
Member
 
Registered: Dec 2003
Distribution: FC2
Posts: 38

Original Poster
Rep: Reputation: 15
I don't have control of DNS. A page with links from apache :80 to squid :81 solves this. Ultimately I will invoke an LDAP auth to invoke a script to log users into remote systems.
 
Old 04-15-2013, 07:20 PM   #4
jmanjohn61
Member
 
Registered: Dec 2003
Distribution: FC2
Posts: 38

Original Poster
Rep: Reputation: 15
I hope...
 
Old 04-16-2013, 02:54 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,406

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
This has nothing to do with DNS, and even less to do with LDAP. I'm lost what you're trying to actually achieve now.

Last edited by acid_kewpie; 04-16-2013 at 02:57 AM.
 
Old 04-16-2013, 12:31 PM   #6
jmanjohn61
Member
 
Registered: Dec 2003
Distribution: FC2
Posts: 38

Original Poster
Rep: Reputation: 15
A collection of devices reside on internal and external network with little capacity to audit, authenticate or build rules limiting use of the devices.
My desire would be to use one box with Apache/Squid leveraging login/auth NTLM either with apache or squid. On the north side, launch a script to push to devices to authenticate each device.
 
Old 04-29-2013, 08:55 AM   #7
jmanjohn61
Member
 
Registered: Dec 2003
Distribution: FC2
Posts: 38

Original Poster
Rep: Reputation: 15
To more clearly define the need. I need a mitm to examine and control. MITMPROXY may help with this.
 
Old 04-29-2013, 12:32 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,406

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
OK, so this *might* be exactly what I have at home. I've an apache instance on 80 and 443 with authentication enabled for all uris with a standard htpasswd file. Most urls are proxied to different ports, 8080, 8081, 8082 where different apps are running, so I get the ssl, authentication and auditing completely in apache. If so, that's just basic mod_proxy stuff for the proxying.
 
Old 05-01-2013, 06:58 AM   #9
jmanjohn61
Member
 
Registered: Dec 2003
Distribution: FC2
Posts: 38

Original Poster
Rep: Reputation: 15
I'm not sure.
The remote devices are all over the place and I can't modify ports on the devices. Basically:

user -------------proxy---------------------intra and internet https://devices (multiple devices running port 443)

Last edited by jmanjohn61; 05-01-2013 at 07:02 AM.
 
Old 05-01-2013, 02:07 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,406

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
well it doesn't have to be on the same box. that was just my own case.
 
Old 05-02-2013, 09:04 AM   #11
jmanjohn61
Member
 
Registered: Dec 2003
Distribution: FC2
Posts: 38

Original Poster
Rep: Reputation: 15
In the method you expressed are you able to then content filter/audit that which originates from the SSL urls?
 
Old 05-02-2013, 12:02 PM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,406

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
there are plenty of ways to check protocols in apache, If you only want SSL urls though, just don't configure it for anything else.
 
  


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
Apache 2.2 Index.html / configure httpd.conf file kaltwasser Linux - Networking 16 09-14-2011 12:05 AM
Squid 2.6 and links:port issue bin_asc Linux - Software 8 10-15-2008 04:29 PM
apache index.html doesn't show up but index.php do zoffmann Linux - Server 5 01-28-2008 03:53 PM
httpd 403 forbidden index.html question Amuro-Ray2020 Linux - Server 1 07-11-2007 07:00 PM
403 You don't have permission to access /index.html on this server. xpucto Linux - Networking 6 06-06-2006 09:19 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration