Re: Config-Include anhand des Hostnamens

2011-07-30 Thread Mario Brandt
Moin Reindl, Gibt es irgendeine Möglichkeit in der httpd.conf anahnd des aktuellen Hostname der Maschine also nicht des Requests/Domain-Namens ein unterschiedliches Include einzubinden? if [ $HOSTNAME == rh.thelounge.net ]; then Include conf/ssl.conf-workstation else Include

Re: Config-Include anhand des Hostnamens

2011-07-30 Thread Reindl Harald
Am 30.07.2011 11:52, schrieb Mario Brandt: ja das geht. IfDefine[1] ist dein Freund. --- httpd.conf --- IfDefine workstation Include conf/ssl.conf-workstation /IfDefine IfDefine !workstation Include conf/ssl.conf-srv /IfDefine --- /httpd.conf --- Auf deiner workstation müßtest Du

[users@httpd] https redirection

2011-07-30 Thread vishesh kumar
Hi Members suppose i have a site https://abc.com and i want if anyone write https://abc.com/xyz.com , it should redirected to https://xyz.com which is one same server. Server wide certificate installed on server . Can anyone please help in redirection -- http://linuxmantra.com

Re: [users@httpd] https redirection

2011-07-30 Thread fedora
I usually do redirections this way: in the web http://abc.com I insert into the body tag body onload=redix() somewhere in the javascripts for this page I have function redix() { if (window.location.search != )) window.location.replace(http://+window.location.search) } // redix suomi

Re: [users@httpd] https redirection

2011-07-30 Thread Jeroen Geilman
On 2011-07-30 08:28, vishesh kumar wrote: Hi Members suppose i have a site https://abc.com and i want if anyone write https://abc.com/xyz.com , it should redirected to https://xyz.com which is one same server. Redirect Permanent /xyz.com/ https://xyz.com/ Server wide certificate installed

Re: [users@httpd] https redirection

2011-07-30 Thread Jeroen Geilman
On 2011-07-30 11:08, fedora wrote: I usually do redirections this way: in the web http://abc.com I insert into the body tag body onload=redix() somewhere in the javascripts for this page I have function redix() { if (window.location.search != ))

Re: [users@httpd] PHP files not being parsed in HTML pages

2011-07-30 Thread Jeroen Geilman
On 2011-07-30 06:41, Darryle Steplight wrote: Trying adding this in your vhost, config file or .htaccess file addHandler x-httpd-php5 .php .htm .html Please get it right: FilesMatch \.php$ SetHandler application/x-httpd-php /FilesMatch On Sat, Jul 30, 2011 at 12:20 AM, Rob

Re: [users@httpd] PHP files not being parsed in HTML pages

2011-07-30 Thread Mark Rousell
On 30/07/2011 18:43, Jeroen Geilman wrote: So, why does a simple file with phpinfo() work and an html page with an include xyz.php NOT render the page as desired in the browser It just ignores the include. HTML does not have an include directive. Please don't confuse PHP with HTML. As

Re: [users@httpd] PHP files not being parsed in HTML pages

2011-07-30 Thread Jeroen Geilman
On 2011-07-30 20:06, Mark Rousell wrote: On 30/07/2011 18:43, Jeroen Geilman wrote: So, why does a simple file with phpinfo() work and an html page with an include xyz.php NOT render the page as desired in the browser It just ignores the include. HTML does not have an include directive.

Re: [users@httpd] PHP files not being parsed in HTML pages

2011-07-30 Thread Mark Rousell
On 30/07/2011 19:54, Jeroen Geilman wrote: On 2011-07-30 20:06, Mark Rousell wrote: On 30/07/2011 18:43, Jeroen Geilman wrote: So, why does a simple file with phpinfo() work and an html page with an include xyz.php NOT render the page as desired in the browser It just ignores the

Re: [users@httpd] PHP files not being parsed in HTML pages

2011-07-30 Thread Jeroen Geilman
On 2011-07-30 23:21, Mark Rousell wrote: On 30/07/2011 19:54, Jeroen Geilman wrote: On 2011-07-30 20:06, Mark Rousell wrote: On 30/07/2011 18:43, Jeroen Geilman wrote: So, why does a simple file with phpinfo() work and an html page with an include xyz.php NOT render the page as desired in the

Re: [users@httpd] PHP files not being parsed in HTML pages

2011-07-30 Thread Stormy
At 07:06 PM 7/30/2011 +0100, Mark Rousell wrote: On 30/07/2011 18:43, Jeroen Geilman wrote: So, why does a simple file with phpinfo() work and an html page with an include xyz.php NOT render the page as desired in the browser It just ignores the include. HTML does not have an include

Re: [users@httpd] PHP files not being parsed in HTML pages

2011-07-30 Thread Darryle Steplight
I can't figure out why these conversations keep going on. I thought the answer was solved with Jeroen Geilman's answer. My answer was slightly off. On Sat, Jul 30, 2011 at 5:33 PM, Stormy storm...@stormy.ca wrote: At 07:06 PM 7/30/2011 +0100, Mark Rousell wrote: On 30/07/2011 18:43, Jeroen

Re: [users@httpd] PHP files not being parsed in HTML pages

2011-07-30 Thread Jeroen Geilman
On 2011-07-30 23:33, Stormy wrote: At 07:06 PM 7/30/2011 +0100, Mark Rousell wrote: On 30/07/2011 18:43, Jeroen Geilman wrote: So, why does a simple file with phpinfo() work and an html page with an include xyz.php NOT render the page as desired in the browser It just ignores the

Re: [users@httpd] PHP files not being parsed in HTML pages

2011-07-30 Thread LabTech
Maybe I'm ancient... but I create ALL my HTML via ECHO in PHP... then all the includes WORK! I set the entire HTML PAGE within ?php and ? brackets. ECHO works! (as does INCLUDE) - Original Message - From: Jeroen Geilman jer...@adaptr.nl To: users@httpd.apache.org Sent: Saturday, July

Re: [users@httpd] PHP files not being parsed in HTML pages

2011-07-30 Thread Rob Stone
On 31/07/11 08:11, LabTech wrote: Maybe I'm ancient... but I create ALL my HTML via ECHO in PHP... then all the includes WORK! I set the entire HTML PAGE within ?php and ? brackets. ECHO works! (as does INCLUDE) - Original Message - From: Jeroen Geilman jer...@adaptr.nl To:

Re: [users@httpd] PHP files not being parsed in HTML pages

2011-07-30 Thread Jeroen Geilman
On 2011-07-31 00:54, Rob Stone wrote: Sorry I have created such a discussion around my use of the word include. In future I'll try to be semantically correct. By include I mean lines of code like this that are embedded into the source html. ?php include xyz.php; ? And that's exactly