On Thu, Apr 08, 2021 at 04:36:47PM -0400, uragnorson wrote:
Hi there,
> location / {
> root /usr/share/nginx.html;
> }
>
> location /dist/ {
> alias /usr/share/nginx/html/dist/;
> }
Because, in this case, the "location" part matches the end of the "alias"
part, you could instead choose to use
On RHEL I have,
location / {
root /usr/share/nginx.html;
}
location /dist/ {
alias /usr/share/nginx/html/dist/;
}
I am able to navigate to http://server/dist but in dist the index.html is
looking for http://server/js but it should be http:/server/dist/js is there
a way to add the extra "dist"
Hi Maxim,
Thank you. That worked a treat.
Regards
Ian
On 26/07/2013 16:25, Maxim Dounin wrote:
Hello!
On Fri, Jul 26, 2013 at 11:19:45AM +0100, Ian Hobson wrote:
[...]
root /home/ian/websites/reseller/htdocs;
# if / then redirect to index.php
location = / {
# serve
Hello!
On Fri, Jul 26, 2013 at 11:19:45AM +0100, Ian Hobson wrote:
[...]
> root /home/ian/websites/reseller/htdocs;
> # if / then redirect to index.php
> location = / {
># serve /index.php
>rewrite ^$ /index.php last;
The rewrite here does nothing as only URI "/" may
Hi all,
Still fighting with my nginx configuration. What I want to achieve.
If static file exists in "reseller" root,
serve from "reseller" root
else if static file file exists in "central" root,
then serve from "Central" root
else
reply with 404
endif
If php file exists in "resell