[mythtv-users] mythweb - 0.28 - partially displayed page only
Stuart Auchterlonie
stuarta at squashedfrog.net
Tue Feb 21 10:19:49 UTC 2017
On 21/02/17 03:33, Mark Perkins wrote:
>
>
>> -----Original Message-----
>> From: mythtv-users [mailto:mythtv-users-bounces at mythtv.org] On Behalf
>> Of Stuart Auchterlonie
>> Sent: Tuesday, 21 February 2017 12:41 AM
>> To: mythtv-users at mythtv.org
>> Subject: Re: [mythtv-users] mythweb - 0.28 - partially displayed page only
>>
>> On 20/02/17 11:00, Mark Perkins wrote:
>>> I'm struggling to get mythweb working. I will admit it is not a standard
> ....
>>> Any assistance or advice greatly appreciated.
>>>
>>
>> Start by changing
>>
>> error_log /var/log/nginx/error.log;
>>
>> to
>>
>> error_log /var/log/nginx/error.log debug;
>>
>> You seem to be partly trying to setup mythweb under
>> /mythweb_0_28 and partly under /.
>>
>> Which of the 2 paths to mythweb are you expecting it to be accessible via?
>>
>>
>> Regards
>> Stuart
>>
>
> Thanks Stuart. Ideally I would like to access via /mythweb_0_28/ as I would like to have a number of virtual sites all on the one host. For example:
> xxx.xxx.xxx.xxx/mythweb_0_27/
> xxx.xxx.xxx.xxx/mythweb_0_28/
> xxx.xxx.xxx.xxx/mythweb_0_29/
> xxx.xxx.xxx.xxx/other_site_1/
> xxx.xxx.xxx.xxx/other_site_2/
>
> But for now I am quite happy to keep it at the base / if it simplifies things. I have tried that this morning, by starting from scratch and trying hard to RTFM. But I've ended up at the same spot again so (whatever it is) I keep repeating the same mistake.
>
Right, here's my config which uses /mythweb as the base.
If you want yours at a different url then change the appropriate
places in the @handler and the location stanza's
Under the webroot (what the root config points to) I have the
mythweb installation under mythweb.
ie <webroot>/mythweb
to align with how the content is served.
Regards
Stuart
------------
location @handler {
# rewrite_log on;
rewrite /mythweb/(.+\.(php|pl))/.* /mythweb/$1 last;
rewrite /mythweb/(pl(/.*)?)$ /mythweb/mythweb.pl/$1 last;
rewrite /mythweb/(.+)$ /mythweb/mythweb.php/$1 last;
rewrite /mythweb/(.*)$ /mythweb/mythweb.php last;
}
location /mythweb/ {
auth_basic "MythWeb";
auth_basic_user_file mythweb.passwd;
index /mythweb/mythweb.php;
try_files $uri @handler;
}
location ~ /mythweb/.+\.php {
include fastcgi_params;
fastcgi_index mythweb.php;
fastcgi_split_path_info ^(.+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass 127.0.0.1:9001;
fastcgi_read_timeout 240;
}
location ~ /mythweb/js {
try_files $uri =404;
}
------------
More information about the mythtv-users
mailing list