I'm a dork.
I fixed it. cat killed me. Without the two ' around EOF is replaced
"/opt/www-data/web2py/applications/$1/static/$2" with
"/opt/www-data/web2py/applications//static/" because it tried and failed
to replace the $ with a known thing like $(Date) so it just errored and
replaced with blank. :( Took me forever to find that. So, moral of the
story if you EOF then you need to \$ escape or encapsulate with single
quotes 'EOF'
cat > /etc/httpd/conf.d/vhost.conf <<'EOF'
<VirtualHost *:80>
WSGIDaemonProcess web2py user=apache group=apache
WSGIProcessGroup web2py
WSGIScriptAlias / /opt/www-data/web2py/wsgihandler.py
WSGIPassAuthorization On
<Directory /opt/www-data/web2py>
AllowOverride None
Require all denied
<Files wsgihandler.py>
Require all granted
</Files>
</Directory>
AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) \
/opt/www-data/web2py/applications/$1/static/$2
<Directory /opt/www-data/web2py/applications/*/static/>
Options -Indexes
Require all granted
</Directory>
<Location /admin>
Require all denied
</Location>
<LocationMatch ^/([^/]+)/appadmin>
Require all denied
</LocationMatch>
CustomLog /var/log/httpd/access_log common
ErrorLog /var/log/httpd/error_log
</VirtualHost>
EOF
On Friday, October 2, 2015 at 1:19:51 PM UTC-7, Dave S wrote:
>
>
>
> On Thursday, October 1, 2015 at 6:44:55 PM UTC-7, Michael Messmer wrote:
>>
>> So I spun up the latest web2py source on a Fedora 22 build and when i
>> goto the url I get this.
>>
>>
>> Does anyone know why I can get to it but the formatting looks terrible?
>> I googled to no avail.
>>
>> Installed:
>>
>> yum install httpd mod_ssl mod_wsgi wget python checkpolicy
>> policycoreutils policycoreutils-devel
>>
>>
>>
> Basic answer: you seem to have lost your CSS files.
>
> Are you using Apache or nginx?
>
> What does your server script look like?
>
> Is your web2py installation complete? The usual css files are normally at
> [web2py directory]/applications/yourapplication/static/css.
> ("yourapplication" is probably "welcome" in the above screen shot)
>
> Did you try setting routes.py, or are you still using the "out of the
> box" features?
>
> I'm no expert on such setups, just using the Rocket server "out of the
> box", but I've seen enough discussion to know something about what the
> first questions are.
>
> /dps
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.