Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 9, 2026. It is now read-only.
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

Apache2 config files #4

Copy link
Copy link
@ll-h

Description

@ll-h
Issue body actions

Hi,

I didn't find any instructions to actually running the website, so I made one for Apache2.
Assuming the Debian package is installed, put in /etc/apache2/sites-available:

  • cppreference-en.conf
Alias /cppreference/en "/usr/share/cppreference/doc/html/en"    
     
<Directory /usr/share/cppreference/doc/html/en>    
    Options +FollowSymlinks    
    AllowOverride All    
     
    Require all granted    
     
    SetEnv HOME /usr/share/cppreference/doc/html/en    
    SetEnv HTTP_HOME /usr/share/cppreference/doc/html/en    
</Directory>
  • cppreference-common.conf
Alias /cppreference/common "/usr/share/cppreference/doc/html/common"            
    
<Directory /usr/share/cppreference/doc/html/common>    
    Options +FollowSymlinks    
    AllowOverride All    
    
    Require all granted    
    
    SetEnv HOME /usr/share/cppreference/doc/html/common    
    SetEnv HTTP_HOME /usr/share/cppreference/doc/html/common    
</Directory>

Then:

cd /etc/apache2/sites-available
sudo a2ensite cppreference-*
sudo systemctl reload apache2 # or start if not started yet

Finally, access the offline reference at the URL localhost/cppreference/en.
I know that it sounds like just using the URL file:///usr/share/cppreference/doc/html/en/index.html with extra steps but some web browsers don't remember the zoom level from one file to the other and disable cookies for local files whereas with a non-file URL through a web server it works.

Maybe this shouldn't have been written in an issue.
Please feel free to close this issue if instructions for this were actually there.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.