Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-13-2008, 05:43 PM
|
#1
|
|
Member
Registered: Sep 2003
Location: Canada
Distribution: CentOS 5.5, Ubuntu 10.04, Linux Mint 11 gnome 64 bit
Posts: 335
Rep:
|
What do I alias? One WebServer; & the world will see one view. Internal users another
Setting up different Document Root on one web server?
Maybe I shouldn't have changed the document root to set a demo web-site up on DynDNS. Now I'm screwed because I can't run any of our other sites (internally). This external thing is only for a couple of weeks (probably). My quick solution was to change DocumentRoot to the base of what I want the external users to see. I thought I'd finally get down to creating A Virtual Host on this box and that would fix my troubles.
Hmmm.
So now I can see the same site that faces externally-- on two different ports locally-- :80 or :8080
That's not what I wanted!
I want :80 and :8080 to have two different Document Root s on the same server. Do I want multiple/two IP's (as in eth0 alias) or two ports (done but not showing different sites) or two web servers. (I can do the extra web server bit, but I figure there really is a better way, and it probably falls under the category Networking. Am I right there?)
Basic requirement is that the external facing site on port 80 looks like it is the only site!
The index file has some info and a link to click to log in.
That must stay the same.
------------
I don't want to set up another web server just for a week or two. So I started investigating the all too oft ignored aliases, and I'm not sure how to split up two DocumentRoots on one server.
Maybe this is an apache2 question. I really think it's Network (cause if it was Apache I'd understand right? ha! ha! Not always.)
??
Sure it's simple once you know :-)
|
|
|
|
12-13-2008, 05:51 PM
|
#2
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,364
|
If I can understand well what you want to achieve, then you have to follow this example.
Regards
|
|
|
|
12-13-2008, 05:58 PM
|
#3
|
|
Member
Registered: Sep 2003
Location: Canada
Distribution: CentOS 5.5, Ubuntu 10.04, Linux Mint 11 gnome 64 bit
Posts: 335
Original Poster
Rep:
|
NameVirtualHost by golly, I think that will do it.
Thanks.
I'll let you know how it goes :-)
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:03 PM.
|
|
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
|
|