ispCP - Board - Support
how to view a website via IP address rather than hostname??? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: how to view a website via IP address rather than hostname??? (/thread-3622.html)



how to view a website via IP address rather than hostname??? - NetworkExpertise - 06-27-2008 01:50 AM

I need the ability to view a clients website before its moved over to my servers via the virtual ip of my server. In the past I have had this working with other hosting software where I type in the url http://0.0.0.0/~customer. Please help.


RE: how to view a website via IP address rather than hostname??? - kilburn - 06-27-2008 03:38 AM

AFAIK this feature is not implemented. The easiest solution that comes to my mind would be adding "{DMN_NAME}.your.server.tld" to the "/etc/ispcp/apache/parts/dmn_entry.tpl" ServerAlias directive, regenerate the domain configurations (wiki explains how) and set *.your.server.tld to always resolve as your server IP (this step depends on how you manage your server's fqdn).

After doing this you should be able to access customer accounts as "customer.dmn.your.server.tld".


RE: how to view a website via IP address rather than hostname??? - Ali_ix - 06-27-2008 04:07 PM

You can also enable userdir module in apache, and change its configuration to point to users htdocs directory, then you can access through http://ip/~cutomer_domain

For more info: http://httpd.apache.org/docs/2.0/mod/mod_userdir.html


RE: how to view a website via IP address rather than hostname??? - ephigenie - 06-27-2008 05:14 PM

mod_userdir won't work because of the different permissions (fastcgi / suexec)
We suggest using the http://cust-domain.your-domain.tld approach like kilburn already suggested.


RE: how to view a website via IP address rather than hostname??? - Ali_ix - 06-27-2008 05:22 PM

I didn't noticed that, I am using mod_userdir already for a directory based (/~user) server and as you claim I am gonna be in trouble.

Since i cant use sub-domains, What do you recommend for this situation? (domain.com/~user or domain.com/user)


RE: how to view a website via IP address rather than hostname??? - nuno - 07-04-2008 11:00 AM

This is valid in "/etc/ispcp/apache/parts/dmn_entry.tpl" ?

ServerAlias www.{DMN_NAME} {DMN_NAME} *.server.foo.net

thanks
Nuno


RE: how to view a website via IP address rather than hostname??? - kilburn - 07-04-2008 04:25 PM

no, it should be:

ServerAlias www.{DMN_NAME} {DMN_NAME} {DMN_NAME}.server.foo.net


RE: how to view a website via IP address rather than hostname??? - nuno - 07-04-2008 08:18 PM

kilburn Wrote:no, it should be:

ServerAlias www.{DMN_NAME} {DMN_NAME} {DMN_NAME}.server.foo.net
yes it's correct
{DMN_NAME}.server.foo.net
=
e.g. sub.domain.com.server.foo.net
domain.com.server.foo.net

and zones?

Code:
>
A/AAAA Records

Host Name                       IP Address                         TTL
    *                              xxx.192.70.xxx                   default

is correct?