loquela Posted March 10, 2010 Share Posted March 10, 2010 Hi there, how do you set up a virtual host without first having a registered domain name? I have set up a virtual host on my apache server and I want to check it but my domain name has not resolved yet. How can I access the server in the meantime? With some hosting providers when you set up a new hosting account they provide a temprary url like this: 12.345.67.890/domain.com But this doesn't work on my server. ??? Cheers! Quote Link to comment https://forums.phpfreaks.com/topic/194806-virtual-servers-temporary-url/ Share on other sites More sharing options...
trq Posted March 10, 2010 Share Posted March 10, 2010 Just access it via your ip address. Quote Link to comment https://forums.phpfreaks.com/topic/194806-virtual-servers-temporary-url/#findComment-1024451 Share on other sites More sharing options...
loquela Posted March 10, 2010 Author Share Posted March 10, 2010 Thanks thorpe, But what exactly do you mean? the ip address is xx.xxx.xx.xxx and if I simply type that I get the main or default host server. How do I get to my additional virtual servers? Quote Link to comment https://forums.phpfreaks.com/topic/194806-virtual-servers-temporary-url/#findComment-1024453 Share on other sites More sharing options...
trq Posted March 11, 2010 Share Posted March 11, 2010 Unless you have multiple ip addresses and use ip based virtual hosting you can't without domains. Quote Link to comment https://forums.phpfreaks.com/topic/194806-virtual-servers-temporary-url/#findComment-1024542 Share on other sites More sharing options...
loquela Posted March 11, 2010 Author Share Posted March 11, 2010 Thanks, OK, does anyone know how the hosting services provide temporary urls using single ip addresses? For example, on my shared hosting, I can set up a hosting account using any random domain name -registered or not (I could use your domain name if I wanted) and they would create a domain reference. I would then be able to access the hosting account using a pattern like: 12.345.67.890/yourdonain.com. For example, this is one of my site: https://cser.org.uk/ the temporary address is: http://79.170.40.232/cser.org.uk/ I know they don't use separate ip for every domain reference. I was wondering if anybody knows how this is achieved. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/194806-virtual-servers-temporary-url/#findComment-1024614 Share on other sites More sharing options...
trq Posted March 11, 2010 Share Posted March 11, 2010 You could do that by creating a soft link within the document root of your default virtual host, that points to the document root of another virtual host. Quote Link to comment https://forums.phpfreaks.com/topic/194806-virtual-servers-temporary-url/#findComment-1024631 Share on other sites More sharing options...
loquela Posted March 12, 2010 Author Share Posted March 12, 2010 Thanks Thorpe, That sounds promising. How would I do that? Cheers Quote Link to comment https://forums.phpfreaks.com/topic/194806-virtual-servers-temporary-url/#findComment-1025115 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.