Updated Add a Virtual Host (markdown)
parent
25625fa706
commit
5b79fbca48
1 changed files with 9 additions and 11 deletions
|
|
@ -25,18 +25,16 @@ server {
|
|||
|
||||
## Apache Example:
|
||||
|
||||
```
|
||||
<VirtualHost *:80>
|
||||
... standard virtual host ...
|
||||
For Apache, you can use a standard virtual host, as long as your server supports PHP. All you need to do is add the following to a `.htaccess` file in your PHPCI `/public` directory.
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule . /index.php [L]
|
||||
</IfModule>
|
||||
</VirtualHost>
|
||||
```
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule . /index.php [L]
|
||||
</IfModule>
|
||||
```
|
||||
|
||||
## Other Servers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue