Current time: 05-17-2024, 05:57 PM Hello There, Guest! (LoginRegister)


Post Reply 
http://domain.tld opens up panel login
Author Message
daverupe Offline
Junior Member
*

Posts: 10
Joined: May 2007
Reputation: 0
Post: #1
http://domain.tld opens up panel login
First my ISP is blocking port 80. I have a DNS service redirecting my domain to IP_ADDRESS:8080. My router is redirecting Port 8080, to my ispCP Omega box on port 80.

I know it's not ideal but it works. I only have 1 option in my area for an ISP. To have them open the port I need open would cost an arm and a leg.

I have the above configuration working currently with VHCS2 2.4.7 something or other... I have installed ispCP Omega in an effort to update the software. The problem I am having is that when you type in http://www.domain.tld, the panel login page shows up instead of the domains index page.

Any help would be GREATLY appreciated!

daverupe
03-31-2009 05:34 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: http://domain.tld opens up panel login
DNS simply resolves hostnames to IP's, so you can't "redirect" domain.tld -> IP_ADDRESS:8080 using it. What you probably did is set up your provider so their own web server redirects to IP_ADDRESS:8080, which actually works only for the default virtualhost. Example demonstration:

- Client enters http://domain.tld in his browser
- The browser connects to your.provider.ip.addr and asks for the index file of domain.tld
- Your provider's web server sends a redirect to your.own.ip.addr:8080
- The browser connects to your.own.ip.addr:8080 and asks for the index file of the default server, because it's connecting to an ip, not to a domain
- Your web server sends the default virtual host index file (the control panel)

As you can see, using this redirect to IP makes the client browser loose the domain information, so VirtualHosts on your own webserver will never work this way.
03-31-2009 09:23 AM
Visit this user's website Find all posts by this user Quote this message in a reply
daverupe Offline
Junior Member
*

Posts: 10
Joined: May 2007
Reputation: 0
Post: #3
RE: http://domain.tld opens up panel login
(03-31-2009 09:23 AM)kilburn Wrote:  DNS simply resolves hostnames to IP's, so you can't "redirect" domain.tld -> IP_ADDRESS:8080 using it. What you probably did is set up your provider so their own web server redirects to IP_ADDRESS:8080, which actually works only for the default virtualhost. Example demonstration:

- Client enters http://domain.tld in his browser
- The browser connects to your.provider.ip.addr and asks for the index file of domain.tld
- Your provider's web server sends a redirect to your.own.ip.addr:8080
- The browser connects to your.own.ip.addr:8080 and asks for the index file of the default server, because it's connecting to an ip, not to a domain
- Your web server sends the default virtual host index file (the control panel)

As you can see, using this redirect to IP makes the client browser loose the domain information, so VirtualHosts on your own webserver will never work this way.

I fully understand how the redirection is working. What I don't understand is why it's working with VHCS2 and not ispCP Omega?
03-31-2009 11:54 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: http://domain.tld opens up panel login
Easy, you had domain.tld's VirtualHost as the default (first defined) one in VHCS, but IspCp is set up so the panel's VirtualHost is the default one. I would try this:

mv /etc/apache2/sites-enabled/ispcp.conf /etc/apache2/sites-enabled/000_ispcp.conf
/etc/init.d/apache2 restart

This should make apache load the ispcp.conf file first (where the user's VirtualHost is defined) and the panel later (00_master.conf)...
04-01-2009 12:28 AM
Visit this user's website Find all posts by this user Quote this message in a reply
daverupe Offline
Junior Member
*

Posts: 10
Joined: May 2007
Reputation: 0
Post: #5
RE: http://domain.tld opens up panel login
That worked, I can access my domain, but now I can't access the panel. HTTP://IP_ADDRESS nor HTTP://HOST_NAME do not work.
04-01-2009 02:23 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #6
RE: http://domain.tld opens up panel login
It's obvious that you can't access the panel if you fully understand how the redirection is working, as you will never be able to access both hosts under this setup.
04-01-2009 05:08 PM
Visit this user's website Find all posts by this user Quote this message in a reply
daverupe Offline
Junior Member
*

Posts: 10
Joined: May 2007
Reputation: 0
Post: #7
RE: http://domain.tld opens up panel login
Thanks for you help Kilburn. I'm using the redirect outside my LAN. so if Joe Boo in God knows where types in my URL, then the port redirect comes into play. On my local LAN, I have a program that changes my DNS config to point to the webserver. So I'm obviously NOT using the port forward while on the LAN.

Is there a way to run the panel under a different Port and the other virtual hosts under 80?
04-01-2009 11:05 PM
Find all posts by this user Quote this message in a reply
daverupe Offline
Junior Member
*

Posts: 10
Joined: May 2007
Reputation: 0
Post: #8
RE: http://domain.tld opens up panel login
(04-01-2009 11:05 PM)daverupe Wrote:  Is there a way to run the panel under a different Port and the other virtual hosts under 80?

I tried the steps in http://www.isp-control.net/ispcp/wiki/howto_defaultport. I can get the login page by http://domain.tld:348. But get a page load error when trying to get to domain.tld. Assistance is again... GREATLY Appreciated!

Failed to Connect
Firefox can't establish a connection to the server at domain.tld.

Though the site seems valid, the browser was unable to establish a connection.

* Could the site be temporarily unavailable? Try again later.
* Are you unable to browse other sites? Check the computer's network connection.
* Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing.
Fixed... I needed to ADD not REPLACE in step 3. in the http://www.isp-control.net/ispcp/wiki/howto_defaultport How To.
(This post was last modified: 04-02-2009 01:57 AM by daverupe.)
04-02-2009 01:10 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)