@@ -96,8 +96,11 @@ Apache HTTP Server is the "standard" platform, and assumed in much of our docume
9696Apache is bundled with many platforms, but can also be downloaded in a bundle
9797with a database engine and PHP from `Bitnami <https://bitnami.com/stacks/infrastructure >`_.
9898
99- .htaccess
100- =========
99+ Configure Main Config File
100+ ==========================
101+
102+ Enabling mod_rewrite
103+ --------------------
101104
102105The "mod_rewrite" module enables URLs without "index.php" in them, and is assumed
103106in our user guide.
@@ -107,6 +110,9 @@ configuration file, e.g., **apache2/conf/httpd.conf**::
107110
108111 LoadModule rewrite_module modules/mod_rewrite.so
109112
113+ Setting Document Root
114+ ---------------------
115+
110116Also make sure that the default document root's ``<Directory> `` element enables this too,
111117in the ``AllowOverride `` setting::
112118
@@ -127,17 +133,26 @@ Virtual Hosting
127133We recommend using "virtual hosting" to run your apps.
128134You can set up different aliases for each of the apps you work on,
129135
136+ Enabling vhost_alias_module
137+ ---------------------------
138+
130139Make sure that the virtual hosting module is enabled (uncommented) in the main
131140configuration file, e.g., **apache2/conf/httpd.conf **::
132141
133142 LoadModule vhost_alias_module modules/mod_vhost_alias.so
134143
144+ Adding Host Alias
145+ -----------------
146+
135147Add a host alias in your "hosts" file, typically **/etc/hosts ** on unix-type platforms,
136148or **c:/Windows/System32/drivers/etc/hosts ** on Windows.
137149Add a line to the file. This could be ``myproject.local `` or ``myproject.test ``, for instance::
138150
139151 127.0.0.1 myproject.local
140152
153+ Setting VirtualHost
154+ -------------------
155+
141156Add a ``<VirtualHost> `` element for your webapp inside the virtual hosting configuration,
142157e.g., **apache2/conf/extra/httpd-vhost.conf **::
143158
0 commit comments