Skip to content

Commit

Permalink
httpd development conf
Browse files Browse the repository at this point in the history
  • Loading branch information
tyoshii committed May 2, 2016
1 parent 00710bc commit 3abc616
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 4 deletions.
21 changes: 21 additions & 0 deletions conf/httpd/development.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<VirtualHost *:80>
ServerName bm-s.info

DocumentRoot /var/www/html/public/
DirectoryIndex index.php

SetEnv FUEL_ENV development

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteLog /var/log/httpd/rewrite_log
RewriteLogLevel 9

RewriteRule ^/$ /index.php [L]

RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
</VirtualHost>
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions deploy/bms.list
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ dir /var/www/bms/fuel/app/
dir /var/www/bms/fuel/app/cache/

# httpd conf
symlink ../conf/virtualhost-00.conf /etc/httpd/conf.d/virtualhost-00.conf
symlink ../conf/virtualhost-bms.conf /etc/httpd/conf.d/virtualhost-bms.conf
symlink ../conf/httpd/virtualhost-00.conf /etc/httpd/conf.d/virtualhost-00.conf
symlink ../conf/httpd/virtualhost-bms.conf /etc/httpd/conf.d/virtualhost-bms.conf

# php conf
symlink ../conf/bms.ini /etc/php.d/bms.ini
Expand Down
4 changes: 2 additions & 2 deletions deploy/bms_staging.list
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ dir /var/www/bms_staging/fuel/app/
dir /var/www/bms_staging/fuel/app/cache/

# httpd conf
symlink ../conf/virtualhost-00.conf /etc/httpd/conf.d/virtualhost-00.conf
symlink ../conf/virtualhost-bms.conf /etc/httpd/conf.d/virtualhost-bms.conf
symlink ../conf/httpd/virtualhost-00.conf /etc/httpd/conf.d/virtualhost-00.conf
symlink ../conf/httpd/virtualhost-bms.conf /etc/httpd/conf.d/virtualhost-bms.conf

# php conf
symlink ../conf/bms.ini /etc/php.d/bms.ini
Expand Down
3 changes: 3 additions & 0 deletions vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ Vagrant.configure(2) do |config|
service httpd start
chkconfig httpd on
# Apache conf
cp /var/www/html/conf/httpd/development.conf /etc/httpd/conf.d/
# MySQL
yum -y install mysql mysql-server mysql-devel
service mysqld start
Expand Down

0 comments on commit 3abc616

Please sign in to comment.