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.
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-server-debian-lenny-ispconfig3-p3 under network configuration starting with the /etc/hosts
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
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!
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.
any way to make /var/www/clients/clientXY/webXY/web/ the webroot for http://128.128.128.128/ ? (I'm trying to reproduce something I had on my old server running on Plesk)
It is the main webroot I think. Like I mentioned, I have a site now reachable at just the IP. There was some customizations that needed to be done to the index.php file(s) but it works fine. Check out my previous post. Unless you mean something totally different, I'm unsure then.
well, if t was webroot, then modifications to your index.php should not have been necessary and style/css etc. wouldn't be lost. also, if an image is put in that same directory, it should be displayed using just src=image.jpg, without adding any paths
ah, I gotcha now. For that you will have to change the default web root set in apache I think. I'm unsure what file exactly sets your web root but the problem with this is that once you update ISPCONFIG, it will overwrite your changes. So you will be better off modifying the proper ISPCONFIG file that sets the web root in apache I guess. Sorry can't help you there.
alternative as an alternative, just setup a different virtual site and change the html file to include an instant forward to the virtual site. That way you stay as close to stock as possible which is handy if you have to do a rebuild or something, less notes to read
the whole point is to use something neutral like an IP address, because I want to run OpenX on it. C'mon, there must be a way?
Maybe I've stumbled upon the solution. There's a file /etc/apache2/sites-available/default it starts with and then sets So If I make a copy of the whole text and insert it at the beginning of the file and change the above to and it should work without disrupting the rest of the server? (for security, I should then also include some upload dirs and jails)
change default listen port change the default listen port to 8080 (or anything else) and put a virtual host in that listens on port 80 but does not use servername. That will work just fine.
Any more ideas on how to do this? I am pretty sure that in ISPConfig 2.x when you go to the IP address of the server it tells you that you are entering a shared webspace. I would like to have this feature for ISPConfig 3.x. How can I achieve this? Also, how do I create an FTP account to the /var/www directory? Thanks, Drew