Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 24th April 2009, 23:12
bizkid64 bizkid64 is offline
Junior Member
 
Join Date: Apr 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to share web content between internal and external domains

I have a Debian/Lenny server running ISPConfig3 (very nice product by the way, can't wait for the documentation)

I want to be able to serve the content from the same /web/ folder to external and internal users. The external ip xx.xx.xxx.217, and the internal ip for the server is 192.168.0.101. How exactly do I configure this?

(Basically I want to be able to see exactly how these pages are looking on my production server without having to use a proxy server to look in from outside my network.)

Hopefully I'm asking this clearly enough. Thanks in advance.
Reply With Quote
Sponsored Links
  #2  
Old 25th April 2009, 11:18
tebokkel tebokkel is offline
Member
 
Join Date: Feb 2007
Location: The Netherlands
Posts: 96
Thanks: 0
Thanked 9 Times in 9 Posts
Default

Assuming you're setup for outside access (ie, it works from the inside with an external proxyserver)..

Put the site's domainname and IP-address in your hosts-file on your workstation(s) (/etc/hosts or \windows\system32\drivers\etc\hosts). Restart browser and you should be able to browse them without the external proxy.

The alternative is using some tricky split-view DNS, but that's probably also overkill

Oh, and BTW, an even better solution would be to put the webserver in a DMZ, with it's public IP, protected with a firewall and another firewall to your internal network. That way it's transparent to you and safe as it should be..

Paul

Last edited by tebokkel; 25th April 2009 at 11:20.
Reply With Quote
  #3  
Old 26th April 2009, 00:13
bizkid64 bizkid64 is offline
Junior Member
 
Join Date: Apr 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I will probably eventually set up a DMZ, as you suggest, but right now, I'm just experimenting with different configurations, testing content, and trying to learn how to use ISPConfig.

I am set up for external access, and I can view the website throught a proxy server. What I can't seem to do, is configure ISPConfig so that the same website is served through the internal network IP. I want to link the same folder on the webserver to two different IP addresses. I know there's a way to do this my modifying the directives in the httpd.conf file, because I've done it before. I'm hoping there's an easy way to get ISPConfig to set up the same thing.

It may be related, but I'd also like some guidance on why, when and how I would use the subdomain and aliasdomain functions in ISPConfig.

Thanks again.
Reply With Quote
  #4  
Old 26th April 2009, 13:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

http://www.howtoforge.com/forums/sho...s+file+windows
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 27th April 2009, 18:53
bizkid64 bizkid64 is offline
Junior Member
 
Join Date: Apr 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Thanks again

I appreciate the responses, but I guess I'm either not phrasing my question clearly or I'm not understanding the relevance of your responses. I know how to configure the host file and that works just fine.

When I create a website linked to the external IP address, ISPConfig creates the following folder structure to store the web content to be served:

/var/www/clients/client1/web1/web.

I also want users connecting over the internal network to be able to view the content in that same folder, but the only way I've found in ISPConfig to do that is to create a second website linked to the internal IP address, which results in a second folder structure

/var/www/clients/client1/web2/web.

In order to what I want, it's easy enough to go in with a text editor and manually change the server directory directive in the .vhost file for the second website to point to the folder

/var/www/clients/client1/web1/web.

I've done that, and what I want to do seems to work just fine (although I haven't tested in very rigorously yet.) It just seemed like there should be some way to do the same thing using that nice ISPConfig interface.

Hopefully that makes my question a little clearer.
Reply With Quote
  #6  
Old 28th April 2009, 10:26
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,733
Thanks: 840
Thanked 5,596 Times in 4,407 Posts
Default

You have to axxess websites by domain name and not IP address. Falko posted the solution for that above.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 29th April 2009, 05:18
bizkid64 bizkid64 is offline
Junior Member
 
Join Date: Apr 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Thanks, I get what you were trying to tell me

I see now what you were trying to tell me, and yes it now seems easy to do what I what to do, using name-based virtual hosts. The problem is that because I will be using SSL, according to the Apache documentation I'll have to use IP-based virtual hosts, which makes this all that much trickier. If you have any thoughts on that, I'd appreciate it.
Reply With Quote
  #8  
Old 29th April 2009, 11:12
tebokkel tebokkel is offline
Member
 
Join Date: Feb 2007
Location: The Netherlands
Posts: 96
Thanks: 0
Thanked 9 Times in 9 Posts
 
Default

You cannot use virtual hosts with SSL.

There's only one SSL-host per IP-address possible, so no virtual hosts.

If you want to have multiple SSL-hosts on one server, either get 1 (public) IP for each server or start mapping them on different ports (ie 443, 444, 445, etc).

The nature of SSL is that the connection is secured before any HTTP-information (like destination hostname) is transferred. This causes an chicken and egg problem, since the hostname is also included in the SSL certificate that is used to secure the connection..
Have a look at http://en.wikipedia.org/wiki/Virtual_hosting#Cons

Paul
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
internal and external issue openware Installation/Configuration 3 11th February 2008 17:21
DNS, Website, External IP, Internal IP setup? webking Installation/Configuration 1 5th June 2007 12:10
Virtual Users And Domains With Postfix, Courier And MySQL (mail not relaying) RinoM1 Server Operation 1 12th November 2006 16:31
Using internal IP, when accessing ISPC from external nvn Installation/Configuration 2 3rd April 2006 17:24


All times are GMT +2. The time now is 23:31.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.