Viewing Virtual host from 127.0.0.1 url

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
chris9610
-


Joined: 02 Nov 2007
Posts: 7

PostPosted: Sat Nov 03, 2007 4:27 am    Post subject: Viewing Virtual host from 127.0.0.1 url Reply with quote

Can you tell me the correct url to view a virtual host from the localhost url?

Say we have (2) hosted domains:
www.mxxdata.com
www.myydata.com

What url syntax is used to call the domains internally.

http://127.0.0.1/???????????????????

I just setup a couple subdomains for testing but they take a while to go into full working order.

TIA
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sat Nov 03, 2007 9:54 am    Post subject: Reply with quote

You cannot call them internally unless

a) you make an alias
b) you edit your hosts file (but this is not a very good method as youd have to remove them to see the site live)
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
chris9610
-


Joined: 02 Nov 2007
Posts: 7

PostPosted: Sat Nov 03, 2007 11:44 am    Post subject: Reply with quote

Now that does not seem like a good method at all.

So you are saying that there is no way to sent the connecting sequence like the DNS registar does but internally.

This makes testing difficult. My isp does not allow loop back to the same external WAN IP. So I cannot request a single domain from the wan IP and I cannot request it from a lan IP.

So a virtual host cannot be used for an intranet either.

I think there must be a way other than taking the site off line with an aliase.
Back to top View user's profile Send private message
pkSML
-


Joined: 29 May 2006
Posts: 955
Location: Michigan, USA

PostPosted: Sat Nov 03, 2007 12:23 pm    Post subject: Reply with quote

For the intranet setting:

You can use virtual hosts.
If this is a Windows XP computer, check it's "full computer name" on the local file-sharing network. (My computer -> Properties -> Computer name tab)

If Abyss is running on port 80, you can access the default host by http://computername/

All other computers on that file-sharing LAN have access by this method.

For another host, you'd need to run it off a different port for your intranet. Say you want it at port 81. Setup the second host to be on port 81 in Abyss. Then access http://computername:81/ from any LAN computer.

BTW, I'd switch ISPs if that was the case for me! I have earthlink and they're awesome.
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
rrinc
-


Joined: 24 Feb 2006
Posts: 725
Location: Arkansas, USA

PostPosted: Sat Nov 03, 2007 4:38 pm    Post subject: Reply with quote

You could run a DNS server inside your LAN. I've never done this though, so I can't really help. Or I think you could use the hosts file for this situation.
_________________
-Blake | New Server :D
SaveTheInternet
Soy hispanohablante. Puedes contactarme por mensajes privados.
Back to top View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
chris9610
-


Joined: 02 Nov 2007
Posts: 7

PostPosted: Sat Nov 03, 2007 5:58 pm    Post subject: Reply with quote

Well thanks to you I was able to get things working.

I set up 3 hosts:
site1 "test.mc-data.com" (sub domain)
site2 "office.mcconnellair.com" (sub domain)
site3 "computername"

default paths:
site1 = /www/webroot/mcconnellair/
site2 = /www/webroot/mcdata/
site3 = /www/webroot/

Now when I enter http://computername/ this takes me to webroot.

This allows me to design and test my sub domain websites internally, but I still have some work to do with Ruby on Rails. I thought X2 with virtual hosts would solve my problems there, but I am not sure about that yet.

Thanks again for the help here.
Back to top View user's profile Send private message
chris9610
-


Joined: 02 Nov 2007
Posts: 7

PostPosted: Sun Nov 04, 2007 2:23 am    Post subject: Reply with quote

BTW I did discover you can have more than one host with the same name.

Then turn on whichever one you want to to use and turn off the other. I use this for the http://mycomputer host and testing internally.

I did get Ruby on Rails to run but it does occupy a host and is the only purose you can use the for that particular host. The only setup I could get to work was the exact configuration as the example on the Aprelium example setup.

So if you need to run a website with a mix of Ruby and php then you must use X2 and a domain and then sub-domains for the ruby host and php host. This little fact took hours learn.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group