LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-08-2012, 11:07 AM   #1
konl33
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
Apache virtual host help.


Hi, I'm new to Linux also with Apache but I am tasked for a project to help me understand hosting a bit more.

My task consist of creating a virtual host which will allow users to see my site internally but when they browse externally to my site it prompts them for a user name and password.

Any help will be appreciated or resources.

Last edited by konl33; 05-08-2012 at 11:20 AM.
 
Old 05-08-2012, 11:54 AM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Well this is an interesting question, looks like a piece of homework. Well you will want to look at using Digest http authentication for your user authentication. Here is the Apache doc for that: http://httpd.apache.org/docs/2.0/mod...th_digest.html. Google searching the term will give you some good third party guides as well.

In order to exclude your local host connections look at using the "Satisfy" directive. You can also look at the access control directives for Apache here: http://httpd.apache.org/docs/2.2/howto/access.html.

Do some reading on that, a little searching and if you get stuck on anything specific respond here and we will help get you in the right direction.
 
  


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
Any way to tunnel apache virtual host to an internal apache? ciuly Linux - Server 5 01-31-2010 01:53 PM
apache virtual host help? paddyjoy Linux - Server 4 09-19-2006 06:49 AM
Apache - Name virtual host tisource Linux - Networking 5 03-03-2006 03:52 AM
Apache 2.0 Virtual Host? w0lfeyes Linux - Networking 1 05-03-2004 04:09 PM
apache virtual host mimi Linux - General 1 04-06-2002 06:11 AM


All times are GMT -5. The time now is 07:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration