Skip to content

Ordering-Inc/mod_vhost_alias_fallback

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

mod_vhost_alias_fallback

Based on mod_vhost_alias to add fallback folder

Compile steps

  1. Install apache dev tools apt install -y apache2-dev

  2. Compile apxs -i -a -c mod_vhost_alias_fallback.c

Example

# Subdomains mydomain.tld

# Load module
LoadModule vhost_alias_fallback_module /usr/lib/apache2/modules/mod_vhost_alias_fallback.so

<VirtualHost *:80>
    ServerAlias *.mydomain.tld

    UseCanonicalName Off
    # Use VirtualDocumentRootWithFallback directive
    VirtualDocumentRootWithFallback /usr/local/apache2/websites/subdomains/%1 usr/local/apache2/websites/subdomains/default
</VirtualHost>

About

Based on mod_vhost_alias to add fallback folder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages