PDA

View Full Version : New to WHM / Cpanelroot how to view temporary?


chakorules
2003-07-30, 21:55 PM
I just got a new server. I've been doing some webpage stuff for awhile but never had my own linux server.

I was wondering if there was a way to setup a tempory location so I can view my webpage before I change my DNS?

Right now I created a new account for my website in Add New Accounts. How can I use just the IP address to VIEW my website so I can troubleshoot my move in?

Striker
2003-07-30, 22:52 PM
when you create the account, just access it this way:
http://<server ip>/~<account>/

like this:
http://1.2.3.4/~someguy/

chakorules
2003-07-30, 23:08 PM
I tried that. I called my server what Sb recommended during the sign up.

server1.mrplc.com


so when I enter my IP address ~mrplc

it fires me over to this link:

http://server1.mrplc.com/~mrplc/

What did I do wrong?

Bowl
2003-07-31, 02:36 AM
its your ip address not the server name say your servers ip was 127.0.0.1 then it would be

http://127.0.0.1/~mrplc

chakorules
2003-07-31, 07:43 AM
Sorry, I must have mis lead you guys.

When I type my IP in, it redirects automatically to:

If I put:

http://<my ip address>/~mrplc/

Then the broswers automatically auto redirects to:

http://server1.mrplc.com/~mrplc/

If I put another USER name

http://<my ip address>/~differentuser/


Then the broswers automatically auto redirects to:

http://server1.mrplc.com/~differentuser/

What did I do wrong in my setup to cause that?

I have a host defined as "server1.mrplc.com"

Do I just need to do a "change hostname" to my IP address instead of a name such as server1.mrplc.com?

Striker
2003-07-31, 10:50 AM
It could be caused by using a pre-packaged website like PHPNuke, Geeklog, or some other kind of package. These types of websites check what address you request and try to send you to the correct domain; this is because of cookie issues.

If this is the case for you, you will need to move your domain before it will work.

chakorules
2003-07-31, 22:23 PM
I don't have anything installed on this server (pre-packaged) so I don't think it's that...

Still not convince that I have to move my website, I rather view it with an IP address as much as I can to setup as much as I can before I move my website....

Striker
2003-07-31, 22:44 PM
Well it sounds to me like your default page is redirecting you to another URL. You'll need to resolve that before you can preview it the way you want.

charlie
2003-08-06, 08:39 AM
Not sure what everyone else is talking about, but, more than likely it's because your server is resolving the name for you. I'm sort of new too but I believe...

This is an apache setting.

Edit your httpd.conf file, it's probably in /etc/httpd/conf/httpd.conf

I see 2 basic options...

1) You can either add the ServerName directive, I'm guessing it's commented out in yours or states your server name (commented out using the pound symbol #). If you uncomment that statement and add whatever name you want, it should change to that name instead of the server1 name you're getting.

2) Look for a line that says UseCanonicalName. By default it's turned On. Turn it Off. This is the command that is causing your website to resolve the name to server1. It should go just to an ip address from there. Note: if you turn this off, it will affect any cgi apps that are using the Server_Name or Server_Port reference variables. However, more often than not, that's not the case anyways.

REMEMBER FOR EITHER OPTION, YOU NEED TO RESTART HTTPD.

Hope this helps.

charlie
=T