Comments (5)
Hi @Enigma7291,
- Try removing the
<IfModule mod_ssl.c>
and</IfModule>
lines from your config. - Where does the shown SSL config exist? Are you sure it's being used?
- If you watch the apache access log do you see lines logged when attempting to access over https?
As an additional note, I see you've installed to /var/www/html/BookStack
. The /var/www/html
is commonly a default served web path. It's important to ensure you don't have the BookStack installation within another live site being served.
Also, it's generally better to prevent use of htaccess files and instead define the required apache config within the virtual host as reflected here (Not, you'd need to change paths to suit.).
from bookstack.
Hi! thanx the advice!
I delete the records:
I delete the default site simlink from the enabled sites. Now just bookstack is over there.
After I restart Apache the status as before
SSL logs:
10.10.1.20 - - [18/Apr/2024:09:04:21 +0200] "GET /user_avatar.png HTTP/1.1" 200 8245 "https://xyz.example.com" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0"
10.10.1.20 - - [18/Apr/2024:09:04:21 +0200] "GET /dist/print-styles.css?version=v21.08.5 HTTP/1.1" 200 715 "https://xyz.example.com" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0"
10.10.1.20 - - [18/Apr/2024:09:04:21 +0200] "GET /dist/app.js?version=v21.08.5 HTTP/1.1" 200 257390 "https://xyz.example.com" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0"
10.10.1.20 - - [18/Apr/2024:09:04:28 +0200] "GET /uploads/images/system/2024-02/xyz.example.png HTTP/1.1" 200 3794 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0"
from bookstack.
@Enigma7291 Please can you update the SSL config to include the required rewrites, as per our example here. You'll need to change paths to suit your setup.
Restart apache afterwards.
from bookstack.
Hi! thanx the advice!
I changed the SSL config as below, but same status.
/etc/apache2/sites-available/Wiki_SSL.conf [----] 16 L:[ 1+41 42/ 43] (1202/1217b) 0010 0x00A [][X]
<VirtualHost _default_:443>
ServerName xyz.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/BookStack/public/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/certs/wiki_2024-25.crt
SSLCertificateKeyFile /etc/ssl/private/wiki_2024-25.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /var/www/html/bookstack/public/>
<------>Options Indexes FollowSymLinks
<------>AllowOverride None
<------>Require all granted
<------><IfModule mod_rewrite.c>
<------> <IfModule mod_negotiation.c>
<------><------>Options -MultiViews -Indexes
<------> </IfModule>
<------> RewriteEngine On
<------> # Handle Authorization Header
<------> RewriteCond %{HTTP:Authorization} .
<------> RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
<------> # Redirect Trailing Slashes If Not A Folder...
<------> RewriteCond %{REQUEST_FILENAME} !-d
<------> RewriteCond %{REQUEST_URI} (.+)/$
<------> RewriteRule ^ %1 [L,R=301]
<------> # Handle Front Controller...
<------> RewriteCond %{REQUEST_FILENAME} !-d
<------> RewriteCond %{REQUEST_FILENAME} !-f
<------> RewriteRule ^ index.php [L]
</IfModule>
</Directory>
</VirtualHost>
from bookstack.
Hi @Enigma7291,
The <Directory /var/www/html/bookstack/public/>
does not match the /var/www/html/BookStack/public/
path you report to be using (note the capitals in BookStack). Try changing that. Also, I assume the funk <------>
parts aren't visible in your config? Not sure where those are coming from.
from bookstack.
Related Issues (20)
- After upgrading from 23.x to 24.x, headers are not showing properly HOT 2
- Rate limit on password resets HOT 9
- migrate to 24.05 fails with "Class "Barryvdh\DomPDF\ServiceProvider" not found" HOT 4
- Attachment upload validation error message appears are shown as JSON
- PLEASE DELETE BUG - I found the problem
- bug in documentation - /dev/docs /visual-theme-system.md & corresponding YouTube video HOT 1
- php artisan cache:clear Make sure you have the appropriate permissions HOT 9
- Users are not shown any templates HOT 7
- Not Found error on /login URL HOT 9
- After version 24.02, comments on pages cannot add image content
- Suddenly get a 500 errors HOT 4
- Request for Comment: Process & scope for security announcements & CVEs HOT 7
- Wrong notification preferences URL in email HOT 2
- OIDC login with Authelia fails with v24.05 HOT 6
- Have a non-blank screen while exports run.
- Webhooks "send" based on book or shelf HOT 1
- Template Append to page content not working HOT 3
- Update custom alignment handing to also clean table `align` attributes
- Scheduled page publishing HOT 4
- Tiered permissions - Managers can promote employees to managers, but not to admins. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bookstack.