On 25 Feb 2010, at 07:10, Lester Caine wrote:
Jonathan Zuckerman wrote:From: "Rupert Reid" <isinglive@xxxxxxxxxxxxxxWhat I want to achieve is that whena browser clicks on http://80.189.101.120/isinglive/ rosario.php <http://80.189.101.120/ isinglive/rosario.php>,I want apache to send http:// isinglive.co.uk/rosario.php<http://isinglive.co.uk/ rosario.php> to the browser (not the former) or if http://80.189.101.120/ cantoenvivo/filosofia.phpis clicked showhttp://cantoenvivo.com/ filosofia.php.How can I get apache to dodynamically this dynamically for eachvirtual domain?It is really important for me thatthe URL as described is sent tothe browser - without it browserscannot bookmark pages. If there is any more information that you need to help with thisplease let me know and i will post it.Cutt the crap .... then people might realize who is asking and who is answeringIm not doing anything weird at all. I am going to each page, and bringing down the book mark menu and selecting Bookmark This Page and then select Done on the window. I'm saying your webpage is weird, can you explain why your links are using the IP instead of the hostname?Jonathan ... Daniel is just trying to help Robert out.It is Robert that has the 'weird webpages', and I suspect is is because he is unable to view his pages locally because a third party is providing the dns mapping.Robert ... first thing to do is replace the ip addresses with the proper host address http://80.189.101.120/isinglive/ -> http:// isinglive.co.uk/ then at least we have the page looking right. This may give you a problem LOOKING at the site from your machine, in which case adding80.189.101.120 isinglive.co.ukto the 'host' file should get around that problem, but the / isinglive/ bit will then be a problem locally, but that is the bit apache virtual hosts should be taking care of. Before I had proper dns serving of my own website I used to have to look at it from the outside. I could not see it properly inside my IP address ;)-- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php ---------------------------------------------------------------------The official User-To-User support forum of the Apache HTTP Server Project.See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
Thanks for the advice Lester,
Robert ... first thing to do is replace the ip addresses with the proper host address http://80.189.101.120/isinglive/ -> http:// isinglive.co.uk/ then at least we have the page looking right.
If i do this in dns, then won't requests loop back to itself and never reach my machine?
This may give you a problem LOOKING at the site from your machine, in which case adding80.189.101.120 isinglive.co.uk
Without changing the changing the hosts file, I am able to view the site locally at http:isinglive.co.uk/rootfolder/ or by http:// 192.168.1.4/
This is my setup: This is what is in the hosts file: 192.168.1.4 isinglive.co.uk This is what is in the <VirtualHost>: <VirtualHost 192.168.1.4> ServerAdmin admin@xxxxxxxxxxxxxxx DocumentRoot /Server/isinglive ServerName www.isinglive.co.uk ServerAlias isinglive </VirtualHost> This is what is in the OSX Network Preferences Show = isinglive.co.uk TCP/IP Configure iPv4 = manually iP Address = 192.168.1.4 This is what the router has in LAN clients IP Address Hostname MAC Type 192.168.1.4 isinglive.co.uk 00:19:e3:3b:b7:13 Static What is wrong with this setup? Thanks Rupert --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx