[modwsgi] Trouble accessing static files via url in browser

2022-12-22 Thread Bob Floyd
I put the google search HTML file (for ownership verification) in 
static/content:

~/WWWsiteServer/static/content$ ls -l
total 244
-rw-rw-r-- 1 nuvroot nuvroot 21748 Dec  6 23:53 BSIM-5-Stage-Inverter.JPG
-rw-rw-r-- 1 nuvroot nuvroot 89457 Dec  6 23:53 Lease.pdf
-rw-rw-r-- 1 nuvroot nuvroot  1078 Dec  6 23:53 NuV2.ico
-rw-rw-r-- 1 nuvroot nuvroot   772 Dec  6 23:53 PDF_32.png
-rw-rw-r-- 1 nuvroot nuvroot 27452 Dec  6 23:53 SecureLeaseSm.JPG
-rw-rw-r-- 1 nuvroot nuvroot  8767 Dec  6 23:53 TrademarkSmall.JPG
-rw-rw-r-- 1 nuvroot nuvroot 77494 Dec  6 23:53 UIDialog.bmp
-rw-rw-r-- 1 nuvroot nuvroot  1078 Dec  9 19:19 favicon.ico
-r--r--r-- 1 nuvroot root   53 Dec 22 01:06 google6821620603f54cd0.html

In my browser I enter https://www.nuv2.com/google6821620603f54cd0.html as 
recommended by google to test for access to the file and get 404 error.

If you navigate to nuv2.com, the other files in content are properly 
loaded, although attempting to access any of them using a url in the 
browser also gives 404.

In the Apache 000-default.conf file I'm using Alias as recommended in the 
modwsgi docs:
# Remap URL's for static files to where they actually are
Alias /BSIM-5-Stage-Inverter.JPG 
/home/nuvroot/WWWsiteServer/static/content/BSIM-5-Stage-Inverter.JPG
Alias /Lease.pdf   /home/nuvroot/WWWsiteServer/static/content/Lease.pdf
Alias /NuV2.ico   /home/nuvroot/WWWsiteServer/static/content/NuV2.ico
Alias /favicon.ico   
/home/nuvroot/WWWsiteServer/static/content/favicon.ico
Alias /PDF_32.png /home/nuvroot/WWWsiteServer/static/content/PDF_32.png
Alias /SecureLeaseSm.JPG 
/home/nuvroot/WWWsiteServer/static/content/SecureLeaseSm.JPG
Alias /TrademarkSmall.JPG 
/home/nuvroot/WWWsiteServer/static/content/TrademarkSmall.JPG
Alias /UIDialog.bmp 
/home/nuvroot/WWWsiteServer/static/content/UIDialog.bmp
# For google search ownership verification
Alias /google6821620603f54cd0.html /home/google6821620603f54cd0.html

Any suggestions how I can get access to the google html file from the url? 
It's probably something simple but I've tried a ton of things without 
success.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to modwsgi+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/d69e7b2d-bf4f-417c-847e-0a66bd821d62n%40googlegroups.com.


Re: [modwsgi] Trouble accessing static files via url in browser

2022-12-22 Thread Bob Floyd
Hi Graham,

$ ls -lasd /home/nuvroot
4 drwxr-xr-x 6 nuvroot nuvroot 4096 Dec 22 15:54 /home/nuvroot

What I tried didn't work, however I'm also bit confused about your use of 
/home/google6821620603f54cd0.html on the Alias line. As that is the target 
should the google file also be located there? I don't have access above 
nuvroot!

Here is the VirtualHost ( I also copied the google file to /home/nuvroot):

# Highest priority


ServerName www.nuv2.com

ServerAdmin webmaster@localhost

DocumentRoot /home/nuvroot/WWWsiteServer


Require all granted


 WSGIDaemonProcess nuv2.com python-home=/usr/local/venvs/WWWsiteServer
WSGIProcessGroup nuv2.com

WSGIApplicationGroup %{GLOBAL}

   WSGIScriptAlias / /var/www/wsgi/WWWsiteServer.wsgi


Require all granted


  Alias /BSIM-5-Stage-Inverter.JPG 
/home/nuvroot/WWWsiteServer/static/content/BSIM-5-Stage-Inverter.JPG
Alias /Lease.pdf   /home/nuvroot/WWWsiteServer/static/content/Lease.pdf
Alias /NuV2.ico   /home/nuvroot/WWWsiteServer/static/content/NuV2.ico
Alias /favicon.ico   
/home/nuvroot/WWWsiteServer/static/content/favicon.ico
Alias /PDF_32.png /home/nuvroot/WWWsiteServer/static/content/PDF_32.png
Alias /SecureLeaseSm.JPG 
/home/nuvroot/WWWsiteServer/static/content/SecureLeaseSm.JPG
Alias /TrademarkSmall.JPG 
/home/nuvroot/WWWsiteServer/static/content/TrademarkSmall.JPG
Alias /UIDialog.bmp 
/home/nuvroot/WWWsiteServer/static/content/UIDialog.bmp
# For google search ownership verification
Alias /google6821620603f54cd0.html 
/home/nuvroot/google6821620603f54cd0.html
# I also tried
#Alias /google6821620603f54cd0.html /home/google6821620603f54cd0.html

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

  

Thanks,
Bob
On Thursday, December 22, 2022 at 2:31:19 PM UTC-8 Graham Dumpleton wrote:

> You use "/home/google6821620603f54cd0.html" as the target of the URL path 
> where it should be:
>
> Alias /google6821620603f54cd0.html 
> /home/nuvroot/WWWsiteServer/static/content/google6821620603f54cd0.html
>
> based on what directory you said it was in.
>
> If that still doesn't work then the issue may be that the Apache user 
> doesn't have access to anything under the home directory. So it still 
> getting access error what do you get for:
>
> ls -lasd /home/nuvroot
>
> Graham
>
> On 23 Dec 2022, at 3:46 am, Bob Floyd  wrote:
>
> I put the google search HTML file (for ownership verification) in 
> static/content:
>
> ~/WWWsiteServer/static/content$ ls -l
> total 244
> -rw-rw-r-- 1 nuvroot nuvroot 21748 Dec  6 23:53 BSIM-5-Stage-Inverter.JPG
> -rw-rw-r-- 1 nuvroot nuvroot 89457 Dec  6 23:53 Lease.pdf
> -rw-rw-r-- 1 nuvroot nuvroot  1078 Dec  6 23:53 NuV2.ico
> -rw-rw-r-- 1 nuvroot nuvroot   772 Dec  6 23:53 PDF_32.png
> -rw-rw-r-- 1 nuvroot nuvroot 27452 Dec  6 23:53 SecureLeaseSm.JPG
> -rw-rw-r-- 1 nuvroot nuvroot  8767 Dec  6 23:53 TrademarkSmall.JPG
> -rw-rw-r-- 1 nuvroot nuvroot 77494 Dec  6 23:53 UIDialog.bmp
> -rw-rw-r-- 1 nuvroot nuvroot  1078 Dec  9 19:19 favicon.ico
> -r--r--r-- 1 nuvroot root   53 Dec 22 01:06 google6821620603f54cd0.html
>
> In my browser I enter https://www.nuv2.com/google6821620603f54cd0.html as 
> recommended by google to test for access to the file and get 404 error.
>
> If you navigate to nuv2.com, the other files in content are properly 
> loaded, although attempting to access any of them using a url in the 
> browser also gives 404.
>
> In the Apache 000-default.conf file I'm using Alias as recommended in the 
> modwsgi docs:
> # Remap URL's for static files to where they actually are
> Alias /BSIM-5-Stage-Inverter.JPG 
> /home/nuvroot/WWWsiteServer/static/content/BSIM-5-Stage-Inverter.JPG
> Alias /Lease.pdf   /home/nuvroot/WWWsiteServer/static/content/Lease.pdf
> Alias /NuV2.ico   /home/nuvroot/WWWsiteServer/static/content/NuV2.ico
> Alias /favicon.ico   
> /home/nuvroot/WWWsiteServer/static/content/favicon.ico
> Alias /PDF_32.png /home/nuvroot/WWWsiteServer/static/content/PDF_32.png
> Alias /SecureLeaseSm.JPG 
> /home/nuvroot/WWWsiteServer/static/content/SecureLeaseSm.JPG
> Alias /TrademarkSmall.JPG 
> /home/nuvroot/WWWsiteServer/static/content/TrademarkSmall.JPG
> Alias /UIDialog.bmp 
> /home/nuvroot/WWWsiteServer/static/content/UIDialog.bmp
> # For google search ownership verification
> Alias /google6821620603f54cd0.html /home/google6821620603f54cd0.html
>
> Any suggestions how I can get access to the google html file from the url? 
> It's probably something simple but I've tried a ton of things without 
> success.
>
> Thanks
>
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to modwsgi+u...@googlegroups.com.
> To view this discussion on the web visit 
> 

Re: [modwsgi] Trouble accessing static files via url in browser

2022-12-22 Thread Graham Dumpleton
You use "/home/google6821620603f54cd0.html" as the target of the URL path where 
it should be:

Alias /google6821620603f54cd0.html 
/home/nuvroot/WWWsiteServer/static/content/google6821620603f54cd0.html

based on what directory you said it was in.

If that still doesn't work then the issue may be that the Apache user doesn't 
have access to anything under the home directory. So it still getting access 
error what do you get for:

ls -lasd /home/nuvroot

Graham

> On 23 Dec 2022, at 3:46 am, Bob Floyd  wrote:
> 
> I put the google search HTML file (for ownership verification) in 
> static/content:
> 
> ~/WWWsiteServer/static/content$ ls -l
> total 244
> -rw-rw-r-- 1 nuvroot nuvroot 21748 Dec  6 23:53 BSIM-5-Stage-Inverter.JPG
> -rw-rw-r-- 1 nuvroot nuvroot 89457 Dec  6 23:53 Lease.pdf
> -rw-rw-r-- 1 nuvroot nuvroot  1078 Dec  6 23:53 NuV2.ico
> -rw-rw-r-- 1 nuvroot nuvroot   772 Dec  6 23:53 PDF_32.png
> -rw-rw-r-- 1 nuvroot nuvroot 27452 Dec  6 23:53 SecureLeaseSm.JPG
> -rw-rw-r-- 1 nuvroot nuvroot  8767 Dec  6 23:53 TrademarkSmall.JPG
> -rw-rw-r-- 1 nuvroot nuvroot 77494 Dec  6 23:53 UIDialog.bmp
> -rw-rw-r-- 1 nuvroot nuvroot  1078 Dec  9 19:19 favicon.ico
> -r--r--r-- 1 nuvroot root   53 Dec 22 01:06 google6821620603f54cd0.html
> 
> In my browser I enter https://www.nuv2.com/google6821620603f54cd0.html as 
> recommended by google to test for access to the file and get 404 error.
> 
> If you navigate to nuv2.com, the other files in content are properly loaded, 
> although attempting to access any of them using a url in the browser also 
> gives 404.
> 
> In the Apache 000-default.conf file I'm using Alias as recommended in the 
> modwsgi docs:
> # Remap URL's for static files to where they actually are
> Alias /BSIM-5-Stage-Inverter.JPG 
> /home/nuvroot/WWWsiteServer/static/content/BSIM-5-Stage-Inverter.JPG
> Alias /Lease.pdf   /home/nuvroot/WWWsiteServer/static/content/Lease.pdf
> Alias /NuV2.ico   /home/nuvroot/WWWsiteServer/static/content/NuV2.ico
> Alias /favicon.ico   
> /home/nuvroot/WWWsiteServer/static/content/favicon.ico
> Alias /PDF_32.png /home/nuvroot/WWWsiteServer/static/content/PDF_32.png
> Alias /SecureLeaseSm.JPG 
> /home/nuvroot/WWWsiteServer/static/content/SecureLeaseSm.JPG
> Alias /TrademarkSmall.JPG 
> /home/nuvroot/WWWsiteServer/static/content/TrademarkSmall.JPG
> Alias /UIDialog.bmp 
> /home/nuvroot/WWWsiteServer/static/content/UIDialog.bmp
> # For google search ownership verification
> Alias /google6821620603f54cd0.html /home/google6821620603f54cd0.html
> 
> Any suggestions how I can get access to the google html file from the url? 
> It's probably something simple but I've tried a ton of things without success.
> 
> Thanks
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to modwsgi+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/modwsgi/d69e7b2d-bf4f-417c-847e-0a66bd821d62n%40googlegroups.com
>  
> .

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to modwsgi+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/11EFB49F-01BC-46B3-B503-179D55F2DFB0%40gmail.com.


Re: [modwsgi] Trouble accessing static files via url in browser

2022-12-22 Thread Graham Dumpleton
Did you try with:

Alias /google6821620603f54cd0.html 
/home/nuvroot/WWWsiteServer/static/content/google6821620603f54cd0.html

or not?

I wasn't using "/home/google6821620603f54cd0.html" on the Alias line, you were, 
and I was telling you to change it to the live above. It should look similar to 
other Alias lines for other files in that directory you already have but you 
were missing the "WWWsiteServer/static/content" part of the path.

Graham

> On 23 Dec 2022, at 12:45 pm, Bob Floyd  wrote:
> 
> Hi Graham,
> 
> $ ls -lasd /home/nuvroot
> 4 drwxr-xr-x 6 nuvroot nuvroot 4096 Dec 22 15:54 /home/nuvroot
> 
> What I tried didn't work, however I'm also bit confused about your use of 
> /home/google6821620603f54cd0.html on the Alias line. As that is the target 
> should the google file also be located there? I don't have access above 
> nuvroot!
> 
> Here is the VirtualHost ( I also copied the google file to /home/nuvroot):
> 
> # Highest priority
> 
> 
> ServerName www.nuv2.com
> 
> ServerAdmin webmaster@localhost
> 
> DocumentRoot /home/nuvroot/WWWsiteServer
> 
> 
> Require all granted
> 
> 
>  WSGIDaemonProcess nuv2.com python-home=/usr/local/venvs/WWWsiteServer
> WSGIProcessGroup nuv2.com
> 
> WSGIApplicationGroup %{GLOBAL}
> 
>WSGIScriptAlias / /var/www/wsgi/WWWsiteServer.wsgi
> 
> 
> Require all granted
> 
> 
>   Alias /BSIM-5-Stage-Inverter.JPG 
> /home/nuvroot/WWWsiteServer/static/content/BSIM-5-Stage-Inverter.JPG
> Alias /Lease.pdf   /home/nuvroot/WWWsiteServer/static/content/Lease.pdf
> Alias /NuV2.ico   /home/nuvroot/WWWsiteServer/static/content/NuV2.ico
> Alias /favicon.ico   
> /home/nuvroot/WWWsiteServer/static/content/favicon.ico
> Alias /PDF_32.png /home/nuvroot/WWWsiteServer/static/content/PDF_32.png
> Alias /SecureLeaseSm.JPG 
> /home/nuvroot/WWWsiteServer/static/content/SecureLeaseSm.JPG
> Alias /TrademarkSmall.JPG 
> /home/nuvroot/WWWsiteServer/static/content/TrademarkSmall.JPG
> Alias /UIDialog.bmp 
> /home/nuvroot/WWWsiteServer/static/content/UIDialog.bmp
> # For google search ownership verification
> Alias /google6821620603f54cd0.html 
> /home/nuvroot/google6821620603f54cd0.html
> # I also tried
> #Alias /google6821620603f54cd0.html /home/google6821620603f54cd0.html
> 
> ErrorLog ${APACHE_LOG_DIR}/error.log
> CustomLog ${APACHE_LOG_DIR}/access.log combined
> 
>   
> 
> Thanks,
> Bob
> On Thursday, December 22, 2022 at 2:31:19 PM UTC-8 Graham Dumpleton wrote:
>> You use "/home/google6821620603f54cd0.html" as the target of the URL path 
>> where it should be:
>> 
>> Alias /google6821620603f54cd0.html 
>> /home/nuvroot/WWWsiteServer/static/content/google6821620603f54cd0.html
>> 
>> based on what directory you said it was in.
>> 
>> If that still doesn't work then the issue may be that the Apache user 
>> doesn't have access to anything under the home directory. So it still 
>> getting access error what do you get for:
>> 
>> ls -lasd /home/nuvroot
>> 
>> Graham
>> 
>> 
>>> On 23 Dec 2022, at 3:46 am, Bob Floyd > wrote:
>>> 
>> 
>>> I put the google search HTML file (for ownership verification) in 
>>> static/content:
>>> 
>>> ~/WWWsiteServer/static/content$ ls -l
>>> total 244
>>> -rw-rw-r-- 1 nuvroot nuvroot 21748 Dec  6 23:53 BSIM-5-Stage-Inverter.JPG
>>> -rw-rw-r-- 1 nuvroot nuvroot 89457 Dec  6 23:53 Lease.pdf
>>> -rw-rw-r-- 1 nuvroot nuvroot  1078 Dec  6 23:53 NuV2.ico
>>> -rw-rw-r-- 1 nuvroot nuvroot   772 Dec  6 23:53 PDF_32.png
>>> -rw-rw-r-- 1 nuvroot nuvroot 27452 Dec  6 23:53 SecureLeaseSm.JPG
>>> -rw-rw-r-- 1 nuvroot nuvroot  8767 Dec  6 23:53 TrademarkSmall.JPG
>>> -rw-rw-r-- 1 nuvroot nuvroot 77494 Dec  6 23:53 UIDialog.bmp
>>> -rw-rw-r-- 1 nuvroot nuvroot  1078 Dec  9 19:19 favicon.ico
>>> -r--r--r-- 1 nuvroot root   53 Dec 22 01:06 google6821620603f54cd0.html
>>> 
>>> In my browser I enter https://www.nuv2.com/google6821620603f54cd0.html as 
>>> recommended by google to test for access to the file and get 404 error.
>>> 
>>> If you navigate to nuv2.com , the other files in content 
>>> are properly loaded, although attempting to access any of them using a url 
>>> in the browser also gives 404.
>>> 
>>> In the Apache 000-default.conf file I'm using Alias as recommended in the 
>>> modwsgi docs:
>>> # Remap URL's for static files to where they actually are
>>> Alias /BSIM-5-Stage-Inverter.JPG 
>>> /home/nuvroot/WWWsiteServer/static/content/BSIM-5-Stage-Inverter.JPG
>>> Alias /Lease.pdf   /home/nuvroot/WWWsiteServer/static/content/Lease.pdf
>>> Alias /NuV2.ico   /home/nuvroot/WWWsiteServer/static/content/NuV2.ico
>>> Alias /favicon.ico   
>>> /home/nuvroot/WWWsiteServer/static/content/favicon.ico
>>> Alias /PDF_32.png /home/nuvroot/WWWsiteServer/static/content/PDF_32.png
>>> Alias /SecureLeaseSm.JPG 
>>> /home/nuvroot/WWWsiteServer/static/content/SecureLeaseSm.JPG
>>> Alias /TrademarkSmall.JPG