Bitnami Mampstack中无法访问子域-Laravel

时间:2018-12-28 12:12:41

标签: laravel apache virtual-machine mamp bitnami

我的应用程序具有子域,我尝试使用bitnami(mampstack-7.1-24-0),我对bitnami.conf进行了更改,并将DocumentRoot和目录指向我的项目文件夹

/apache2/conf/bitnami/bitnami.conf

这是我的bitnami.conf

# Default Virtual Host configuration.

<IfVersion < 2.3 >
  NameVirtualHost *:80
  NameVirtualHost *:443
</IfVersion>

<VirtualHost _default_:80>
  DocumentRoot "myapps/temp/suiteroom/public"
  <Directory "myapps/temp/suiteroom/public">
    Options Indexes FollowSymLinks
    AllowOverride All
    <IfVersion < 2.3 >
      Order allow,deny                          
      Allow from all
    </IfVersion>
    <IfVersion >= 2.3 >
      Require all granted
    </IfVersion>
  </Directory>

  # Error Documents
  ErrorDocument 503 /503.html

  # Bitnami applications installed with a prefix URL (default)
  Include "/Applications/mampstack-7.1.24-0/apache2/conf/bitnami/bitnami-apps-prefix.conf"
</VirtualHost>

# Default SSL Virtual Host configuration.

<IfModule !ssl_module>
  LoadModule ssl_module modules/mod_ssl.so
</IfModule>

Listen 443
SSLProtocol all -SSLv2 -SSLv3
SSLHonorCipherOrder on
SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS !EDH !RC4"
SSLPassPhraseDialog  builtin
SSLSessionCache "shmcb:/Applications/mampstack-7.1.24-0/apache2/logs/ssl_scache(512000)"
SSLSessionCacheTimeout  300

<VirtualHost _default_:443>
  DocumentRoot "myapps/temp/suiteroom/public"
  SSLEngine on
  SSLCertificateFile "/Applications/mampstack-7.1.24-0/apache2/conf/server.crt"
  SSLCertificateKeyFile "/Applications/mampstack-7.1.24-0/apache2/conf/server.key"

  <Directory "myapps/temp/suiteroom/public">
    Options Indexes FollowSymLinks
    AllowOverride All
    <IfVersion < 2.3 >
      Order allow,deny                          
      Allow from all
    </IfVersion>
    <IfVersion >= 2.3 >
      Require all granted
    </IfVersion>
  </Directory>

  # Error Documents
  ErrorDocument 503 /503.html

  # Bitnami applications installed with a prefix URL (default)
  Include "/Applications/mampstack-7.1.24-0/apache2/conf/bitnami/bitnami-apps-prefix.conf"
</VirtualHost>

# Bitnami applications that uses virtual host configuration
Include "/Applications/mampstack-7.1.24-0/apache2/conf/bitnami/bitnami-apps-vhosts.conf"

我还在主机上进行了一些设置,以将url地址从localhost:8080更改为suiteroom.dev

127.0.0.1 localhost
127.0.0.1 suiteroom.dev
127.0.0.1 subdomain.suiteroom.dev

我可以访问suiteroom.dev,但是我无法访问subdomain.suiteroom.dev,当我尝试访问时,URL自动更改并将我带到suiteroom.dev 我会错过一些设置吗?我真的很感谢您的帮助

0 个答案:

没有答案