Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
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,233
Original Poster
|
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?
|
|
|
01-05-2011, 02:28 PM
|
#17
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,221
|
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.
Regards
|
|
|
01-06-2011, 10:08 AM
|
#18
|
LQ Newbie
Registered: Oct 2009
Location: Albuquerque, NM USA
Distribution: Gentoo, CentOS
Posts: 8
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 03:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|