[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
Ahh, yeah, I'm on shared reseller hosting atm. I'm hoping to try out managed hosting some time in the next few months for a project I've got in the works, should decrease my hosting prices also. Probably going to be ubuntu. Still, gotta get my Linux box wired up so I can get some real practice with apache security, updating it and keeping some other programs running alongside it. Are there any handy security newsletters you know of so I can get signed up? Kind regards as always. Ryan Carson - Director Refresh Creations Ltd --------------------- Web: http://www.refreshcreations.co.uk/ Tel: 0845 09 42 987 Fax: 0870 80 30 989 -----Original Message----- From: list-bounces@xxxxxxxxxxxxx [mailto:list-bounces@xxxxxxxxxxxxx] On Behalf Of Simon Waters Sent: 07 August 2007 12:41 To: list@xxxxxxxxxxxxx Subject: Re: [LUG] dumb question about apace + php Ryan Carson wrote: > Ohh, First post, hello! > > Can’t you just do that through .htaccess also? Yes. Generally you should do things via the Apache config not .htaccess, if you can (i.e. if it isn't just a shared hosting account). But rather than rename the URL on the fly, you'd just tell Apache to use the PHP interpreter for handling the ".html" files. i.e. Add the extension to the bits that says... <IfModule mod_php5.c> AddType application/x-httpd-php .php .phtml .php3 AddType application/x-httpd-php-source .phps </IfModule> Of course doing this for all html files, on all sites, when only one page has PHP would be inefficent. One could also just invoke PHP for this one file. Renaming the page ".php" is probably simplest ;) Simon -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 06/08/2007 16:53 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 06/08/2007 16:53 -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html