Skip to content

Commit

Permalink
Remove the public subdirectory from being hardcoded in the new apache…
Browse files Browse the repository at this point in the history
… site config file.
  • Loading branch information
patrickcarlohickman committed Jan 23, 2023
1 parent c6269f7 commit 83c419e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions setup/resources/apache/apache-site-stub.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<VirtualHost *:80>
ServerName stub-domain.test
ServerAlias www.stub-domain.test
DocumentRoot stub-vhost/stub-folder/public/
DocumentRoot stub-vhost/stub-folder/
Options Indexes FollowSymLinks

<Directory "stub-vhost/stub-folder/public/">
<Directory "stub-vhost/stub-folder/">
AllowOverride All
<IfVersion < 2.4>
Allow from all
Expand All @@ -31,14 +31,14 @@
<VirtualHost *:443>
ServerName stub-domain.test
ServerAlias www.stub-domain.test
DocumentRoot stub-vhost/stub-folder/public/
DocumentRoot stub-vhost/stub-folder/
Options Indexes FollowSymLinks

SSLEngine on
SSLCertificateFile "/etc/ssl/certs/ssl-cert-snakeoil.pem"
SSLCertificateKeyFile "/etc/ssl/private/ssl-cert-snakeoil.key"

<Directory "stub-vhost/stub-folder/public/">
<Directory "stub-vhost/stub-folder/">
AllowOverride All
<IfVersion < 2.4>
Allow from all
Expand Down
2 changes: 1 addition & 1 deletion setup/resources/apache/make-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function usage {
}

readonly NEW_SITE_DOMAIN="${1}"
readonly NEW_SITE_DIRECTORY="${2:-${1}}"
readonly NEW_SITE_DIRECTORY="${2:-${1}/public}"
readonly NGROK_START_NAME="${3:-${1}}"

readonly VHOST_DIRECTORY="${VHOST_DIRECTORY:-/var/www/vhost}"
Expand Down

0 comments on commit 83c419e

Please sign in to comment.