LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-13-2008, 05:43 PM   #1
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Fedora 30
Posts: 341

Rep: Reputation: 37
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.
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 :-)
 
Old 12-13-2008, 05:51 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

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

Regards
 
Old 12-13-2008, 05:58 PM   #3
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Fedora 30
Posts: 341

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


Reply



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-16-2008 11:23 PM
Command to view all the alias names in Linux vamsihere4u Linux - General 2 09-19-2007 03:34 PM
internal webserver Sern Linux - Networking 4 06-11-2005 12:26 PM
Seeing webserver from internal network NetAX Linux - Networking 2 07-09-2004 10:03 AM
How do i make an alias on my webserver? meluser Linux - Software 14 03-13-2003 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:55 PM.

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
Open Source Consulting | Domain Registration