Apache and chrome query oddity
Luggers', I hope you are all well. I'm hoping someone out there will know what is wrong with an apache server I have. SSL is up an running, a .htaccess in the web root redirects all incoming http request over https. When someone browses in chrome to http://apache_server the index document (in this case index.php) is parsed to the browser as a download? If I browse to http://index.php I am redirected to https://index.php and it works fine, if I browse to just https://apache_server its fine, but http://apache_server isn't working, chrome just downloads the index page? What could this be, I'm no apache master, could it be a MIME miss-match between browser and server? -- Regards, James. http://www.jamesbensley.co.cc/ There are 10 kinds of people in the world; Those who understand Vigesimal, and J others...?
On 01 Oct 11:43, James Bensley wrote:
Luggers',
I hope you are all well. I'm hoping someone out there will know what is wrong with an apache server I have. SSL is up an running, a .htaccess in the web root redirects all incoming http request over https.
When someone browses in chrome to http://apache_server the index document (in this case index.php) is parsed to the browser as a download? If I browse to http://index.php I am redirected to https://index.php and it works fine, if I browse to just https://apache_server its fine, but http://apache_server isn't working, chrome just downloads the index page?
What could this be, I'm no apache master, could it be a MIME miss-match between browser and server?
Sounds like php isn't enabled on the http side to me... But, anyways, if you're really just redirecting all http to https, rather than a .htaccess it would be better to do on the site config for that site: Redirect / https://the.site.name/ Which would do a redirect for everything nicely. Thanks, -- Brett Parker http://www.sommitrealweird.co.uk/ PGP Fingerprint 1A9E C066 EDEE 6746 36CB BD7F 479E C24F 95C7 1D61
participants (2)
-
Brett Parker -
James Bensley