OSSのShirasagiをCentOS7にインストールしたが、ログイン画面から先がCSSが当たっていないように見える。
でも画面はきちんと表示できている。CSSがちゃんと当たるようにしたい。
Shirasagi https://www.ss-proj.org/
conf
1<VirtualHost *:80> 2 ServerName gw.exmple.jp 3 DocumentRoot /var/www/shirasagi/public/sites/w/w/w/_/ 4 Alias /assets/ /var/www/shirasagi/public/assets/ 5 6 # x-sendfile 7 RequestHeader Set X-Sendfile-Type X-Sendfile 8 XSendFile on 9 XSendFilePath /var/www/shirasagi 10 11 # static 12 RewriteEngine on 13 RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} -f [OR] 14 RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} -d [OR] 15 RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} -s 16 RewriteRule ^.*$ - [L] 17 18 # reverse proxy 19 AllowEncodedSlashes On 20 ProxyRequests Off 21 ProxyPass / http://127.0.0.1:3000/ nocanon 22 ProxyPassReverse / http://127.0.0.1:3000/ 23RewriteCond %{SERVER_NAME} =gw.exmple.jp 24RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] 25</VirtualHost> 26 27<IfModule mod_ssl.c> 28<VirtualHost *:443> 29 ServerName gw.exmple.jp 30 DocumentRoot /var/www/shirasagi/public/sites/w/w/w/_/ 31 Alias /assets/ /var/www/shirasagi/public/assets/ 32 33 # x-sendfile 34 RequestHeader Set X-Sendfile-Type X-Sendfile 35 XSendFile on 36 XSendFilePath /var/www/shirasagi 37 38 # static 39 RewriteEngine on 40 RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} -f [OR] 41 RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} -d [OR] 42 RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} -s 43 RewriteRule ^.*$ - [L] 44 45 # reverse proxy 46 AllowEncodedSlashes On 47 ProxyRequests Off 48 ProxyPass / http://127.0.0.1:3000/ nocanon 49 ProxyPassReverse / http://127.0.0.1:3000/ 50SSLCertificateFile /etc/letsencrypt/live/gw.exmple.jp/cert.pem 51SSLCertificateKeyFile /etc/letsencrypt/live/gw.exmple.jp/privkey.pem 52Include /etc/letsencrypt/options-ssl-apache.conf 53SSLCertificateChainFile /etc/letsencrypt/live/gw.exmple.jp/chain.pem 54 55 # Add RequestHeader 56 RequestHeader set X-Forwarded-Proto 'https' 57 58</VirtualHost> 59</IfModule>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。