Virtualhost For Wildcard Subdomain and Static Subdomain

前端 未结 3 1600
感动是毒
感动是毒 2020-11-27 09:40

I have an odd situation where I want to have the URLs app1.example.com, example.com and *.example.com all using a different virtual h

3条回答
  •  时光取名叫无心
    2020-11-27 10:25

    This also works for https needed a solution to making project directories this was it. because chrome doesn't like non ssl anymore used free ssl. Notice: My Web Server is Wamp64 on Windows 10 so I wouldn't use this config because of variables unless your using wamp.

    
    ServerAdmin test@test.com
    ServerName test.com
    ServerAlias *.test.com
    
    SSLEngine On
    SSLCertificateFile "conf/key/certificatecom.crt"
    SSLCertificateKeyFile "conf/key/privatecom.key"
    
    VirtualDocumentRoot "${INSTALL_DIR}/www/subdomains/%1/"
    
    DocumentRoot "${INSTALL_DIR}/www/subdomains"
    
        Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require all granted
    
    

提交回复
热议问题