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


  Search this Thread
Old 01-05-2011, 11:52 AM   #16
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,200

Original Poster
Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397

good catch, yeah it seems to work when I access the IP address directly from the server itself, now what do I do about that?
Old 01-05-2011, 02:28 PM   #17
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,478

Rep: Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480
This happens is squid runs as a reverse proxy in front of apache. What you can do, is to contact the squid admin and tell him to add:
along the cache_peer directives.

Or you need to look better into the authentication through php.

Old 01-06-2011, 10:08 AM   #18
LQ Newbie
Registered: Oct 2009
Location: Albuquerque, NM USA
Distribution: Gentoo, CentOS
Posts: 8

Rep: Reputation: 0
I've written my own authentication through PHP using MySQL. I've used auto_prepend_file and auto_append_file to include my authentication on every html page, as well as putting a banner and menu on all the pages on the server. This works well for the html content, since content contributors don't have to include the standard code. If the contributed html is too complex. however, it doesn't work well. Long term, I need to go more toward a Content Management System, but that's a longer story.

I have the same concern as original poster; How do I use PHP authentication to limit access to non-HTML documents? I can use rewrite rules to change a request for other files to a php script, but I don't quite understand how to setup the headers and push the non-HTML (binary?) data.


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
HTTP auth from outside + allow from local sir-lancealot Linux - Server 1 07-29-2010 01:25 PM
http auth question razzera Debian 1 07-04-2010 10:18 AM
http auth question razzera Debian 3 06-04-2010 04:37 PM
Apache http auth. razzera Linux - Security 6 01-27-2010 06:32 AM
Swaret through http proxy+auth securedigital Slackware 8 09-30-2008 10:30 AM

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

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