Re: httpd - serving index.html & index.php at the same time

2018-04-12 Thread Kenneth Gober
On Tue, Apr 10, 2018 at 3:24 PM, Mischa wrote: > Is there a way to serve both static and dynamic content, eg. index.html and > index.php within the same server { } definition? > I am looking for something like: > > server "default" { > listen on $ext_addr port 80 > root

Fwd: httpd - serving index.html & index.php at the same time

2018-04-11 Thread Tom Smyth
Hi Mischa directory index "index.*" To allow serving of index.php if its in the directory or index.html if that is in the directory When both are present in a directory im not sure what would happen though On Wed 11 Apr 2018, 21:55 Mischa, wrote: > > > On 11 Apr 2018, at

Re: httpd - serving index.html & index.php at the same time

2018-04-11 Thread Mischa
> On 11 Apr 2018, at 22:53, Tom Smyth wrote: > > Mischa > Hows it going ? > have you tried index.* for both html and php index support ? > > I have been bailed out by the * before on php apps with seo friendly urls Hey Tom! Doing well man... looking forward to

Re: httpd - serving index.html & index.php at the same time

2018-04-11 Thread Tom Smyth
Mischa Hows it going ? have you tried index.* for both html and php index support ? I have been bailed out by the * before on php apps with seo friendly urls On Wed 11 Apr 2018, 21:50 Mischa, wrote: > > > On 11 Apr 2018, at 22:40, Bryan Harris wrote:

Re: httpd - serving index.html & index.php at the same time

2018-04-11 Thread Mischa
> On 11 Apr 2018, at 22:40, Bryan Harris wrote: > > I'll ask a dumb question. Why do you need extra root directives? Can't you > do this? > > location "^/phpapp/*" { > directory index "index.php" > } > location "*.php" { > fastcgi socket "/run/php-fmp.sock > } > >

Re: httpd - serving index.html & index.php at the same time

2018-04-11 Thread Bryan Harris
I'll ask a dumb question. Why do you need extra root directives? Can't you do this? location "^/phpapp/*" { directory index "index.php" } location "*.php" { fastcgi socket "/run/php-fmp.sock } Bryan On Wed, Apr 11, 2018 at 10:32 AM, Mischa wrote: > > On 11 Apr 2018, at

Re: httpd - serving index.html & index.php at the same time

2018-04-11 Thread Mischa
> On 11 Apr 2018, at 12:14, Gregory Edigarov wrote: > > On 11.04.18 11:40, Mischa wrote >> Ok, good to know. It doesn't work as written. The only thing I see in the >> error.log is the fact that the PHP script is not found. >> >> Access to the script '/htdocs/s/' has been

Re: httpd - serving index.html & index.php at the same time

2018-04-11 Thread Gregory Edigarov
On 11.04.18 11:40, Mischa wrote Ok, good to know. It doesn't work as written. The only thing I see in the error.log is the fact that the PHP script is not found. Access to the script '/htdocs/s/' has been denied (see security.limit_extensions) Which tells me index.php is not requested.

Re: httpd - serving index.html & index.php at the same time

2018-04-11 Thread Mischa
> On 11 Apr 2018, at 10:00, Gregory Edigarov wrote: > > On 10.04.18 22:24, Mischa wrote: >> Hi All, >> >> Is there a way to serve both static and dynamic content, eg. index.html and >> index.php within the same server { } definition? >> I am looking for something like: >>

Re: httpd - serving index.html & index.php at the same time

2018-04-11 Thread Gregory Edigarov
On 10.04.18 22:24, Mischa wrote: Hi All, Is there a way to serve both static and dynamic content, eg. index.html and index.php within the same server { } definition? I am looking for something like: server "default" { listen on $ext_addr port 80 root "/htdocs" directory index

httpd - serving index.html & index.php at the same time

2018-04-10 Thread Mischa
Hi All, Is there a way to serve both static and dynamic content, eg. index.html and index.php within the same server { } definition? I am looking for something like: server "default" { listen on $ext_addr port 80 root "/htdocs" directory index "index.html" # not needed as it's the