Giter Club home page Giter Club logo

Comments (5)

ssddanbrown avatar ssddanbrown commented on May 23, 2024

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.

Enigma7291 avatar Enigma7291 commented on May 23, 2024

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.

ssddanbrown avatar ssddanbrown commented on May 23, 2024

@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.

Enigma7291 avatar Enigma7291 commented on May 23, 2024

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.

ssddanbrown avatar ssddanbrown commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.