Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-13-2008, 06:43 PM   #1
Registered: Sep 2003
Location: Canada
Distribution: Fedora 25
Posts: 338

Rep: Reputation: 36
Question 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.
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 :-)
Old 12-13-2008, 06:51 PM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,882

Rep: Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608
If I can understand well what you want to achieve, then you have to follow this example.

Old 12-13-2008, 06:58 PM   #3
Registered: Sep 2003
Location: Canada
Distribution: Fedora 25
Posts: 338

Original Poster
Rep: Reputation: 36
NameVirtualHost by golly, I think that will do it.
I'll let you know how it goes :-)


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
Can't access webserver via ip in internal network YoJr Linux - Newbie 3 04-17-2008 12:23 AM
Command to view all the alias names in Linux vamsihere4u Linux - General 2 09-19-2007 04:34 PM
internal webserver Sern Linux - Networking 4 06-11-2005 01:26 PM
Seeing webserver from internal network NetAX Linux - Networking 2 07-09-2004 11:03 AM
How do i make an alias on my webserver? meluser Linux - Software 14 03-13-2003 04:11 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:42 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