Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 1st September 2009, 14:11
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
Default Webspace reachable on server's IP

Don't jump to conclusions, read the whole post!

Here is the current state of the server:

Debian 5 + ISPConfig 3
The server hosts domains with websites.
Everything works as in a standard ISPC3 installation (webmail, phpmyadmin, etc.)
Currently, if one enters the server's IP into the URL field of a browser, it displays "it works!"


What I would like to achieve:

I would like to setup a website on the server's IP while keeping the hosted domains functional.
Reply With Quote
Sponsored Links
  #2  
Old 1st September 2009, 15:16
Horfic Horfic is offline
Senior Member
 
Join Date: Mar 2009
Location: Austria
Posts: 325
Thanks: 55
Thanked 93 Times in 58 Posts
Send a message via Skype™ to Horfic
Default

you check your /etc/hosts file. There should be something in it like

192.168.0.100 server1.example.com server1

This should do the trick when the server1.example.com is the same domain like the one you want to display on the ip address

PS: You can look at the setup instructions http://www.howtoforge.com/perfect-se...-ispconfig3-p3 under network configuration starting with the /etc/hosts
__________________
web wack creations - We create your custom web application
Mailuser interface for ISPConfig 3
Reply With Quote
  #3  
Old 1st September 2009, 19:09
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
Default

Hi, Thanks, but I'm not sure I understand.

You talk about a domain, I just want to display a website.

for example, when the IP is called from a browser, the file index.php will be displayed as http://128.128.128.128/index.php
Reply With Quote
  #4  
Old 1st September 2009, 19:15
Horfic Horfic is offline
Senior Member
 
Join Date: Mar 2009
Location: Austria
Posts: 325
Thanks: 55
Thanked 93 Times in 58 Posts
Send a message via Skype™ to Horfic
Default

Sorry, my fault. Then you just change the html file with "it works" to something else! You can find this file under /var/www/index.html

Have fun!
__________________
web wack creations - We create your custom web application
Mailuser interface for ISPConfig 3
Reply With Quote
  #5  
Old 1st September 2009, 19:32
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
Default

ok, is there any way to get it to serve the contents of a var/www/clients/clientXY/webXY/web folder?

Last edited by manarak; 1st September 2009 at 19:35.
Reply With Quote
  #6  
Old 1st September 2009, 20:18
astewart astewart is offline
Member
 
Join Date: Feb 2007
Posts: 95
Thanks: 1
Thanked 7 Times in 7 Posts
Default

Quote:
Originally Posted by manarak View Post
ok, is there any way to get it to serve the contents of a var/www/clients/clientXY/webXY/web folder?
What you can do is create a symlink of the file that you already have in one of your web directories, eg:

Code:
user@server:/var/www# ln -s /var/www/domain.com/web/index.php ./index.php
Unfortunitely with this method all Style / CSS is gone and modifications would need to be made to the index file to reflect the whole URL path for most objects / links.

Play around with it and see what you can figure out.
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
How to host a forum with multiple web servers? itwillcome Technical 3 11th February 2011 01:26
DNS views with Master and Slave servers howto guytools Server Operation 0 24th May 2009 00:19
merge 2 ispconfig servers in 1 dimitar Installation/Configuration 1 22nd January 2008 08:27
Unable send receive emails vassilis3 Installation/Configuration 15 19th May 2007 14:34
No SPF record. beryl Installation/Configuration 6 17th May 2007 19:52


All times are GMT +2. The time now is 01:48.


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