Skip to content

Commit 92e5a8f

Browse files
committed
docs: add sub section titles and fix
1 parent 35e5342 commit 92e5a8f

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

user_guide_src/source/installation/running.rst

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,11 @@ Apache HTTP Server is the "standard" platform, and assumed in much of our docume
9696
Apache is bundled with many platforms, but can also be downloaded in a bundle
9797
with 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

102105
The "mod_rewrite" module enables URLs without "index.php" in them, and is assumed
103106
in 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+
110116
Also make sure that the default document root's ``<Directory>`` element enables this too,
111117
in the ``AllowOverride`` setting::
112118

@@ -127,17 +133,26 @@ Virtual Hosting
127133
We recommend using "virtual hosting" to run your apps.
128134
You can set up different aliases for each of the apps you work on,
129135

136+
Enabling vhost_alias_module
137+
---------------------------
138+
130139
Make sure that the virtual hosting module is enabled (uncommented) in the main
131140
configuration 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+
135147
Add a host alias in your "hosts" file, typically **/etc/hosts** on unix-type platforms,
136148
or **c:/Windows/System32/drivers/etc/hosts** on Windows.
137149
Add 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+
141156
Add a ``<VirtualHost>`` element for your webapp inside the virtual hosting configuration,
142157
e.g., **apache2/conf/extra/httpd-vhost.conf**::
143158

0 commit comments

Comments
 (0)