Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.1] Suporte ao Apache HTTP Server #592

Merged
merged 6 commits into from Jun 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 3 additions & 5 deletions .travis.yml
Expand Up @@ -9,11 +9,10 @@ matrix:
dist: xenial

php:
- 7.1
- 7.2
- '7.2'

addons:
postgresql: 9.5
postgresql: '9.5'
chrome: stable

env:
Expand All @@ -34,8 +33,7 @@ matrix:

before_script:
- composer new-install
- php artisan dusk:chrome-driver
- vendor/laravel/dusk/bin/chromedriver-linux > /dev/null 2>&1 &
- php artisan dusk:chrome-driver 74
- php artisan serve > /dev/null 2>&1 &

script:
Expand Down
7 changes: 7 additions & 0 deletions docker/httpd/Dockerfile
@@ -0,0 +1,7 @@
FROM httpd

MAINTAINER Portabilis
edersoares marked this conversation as resolved.
Show resolved Hide resolved

RUN apt-get update -y

RUN echo "Include /usr/local/apache2/conf/default.conf" >> /usr/local/apache2/conf/httpd.conf
29 changes: 29 additions & 0 deletions docker/httpd/default.conf
@@ -0,0 +1,29 @@
ServerName localhost

LoadModule deflate_module /usr/local/apache2/modules/mod_deflate.so
LoadModule proxy_module /usr/local/apache2/modules/mod_proxy.so
LoadModule proxy_fcgi_module /usr/local/apache2/modules/mod_proxy_fcgi.so
LoadModule rewrite_module modules/mod_rewrite.so

<VirtualHost *:80>

DocumentRoot /var/www/ieducar/public/

RewriteEngine On

RewriteRule ^/intranet/?$ /intranet/index.php [R]

RewriteRule ^/module/(.*)/(imagens|scripts|styles)/(.*)$ /intranet/$2/$3 [PT]

RewriteRule ^(/intranet.*\.php|/modules.*\.php|/module/) /index.php$1 [PT]

ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://php:9000/var/www/ieducar/public/$1

<Directory /var/www/ieducar/public/>
DirectoryIndex index.php
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>

</VirtualHost>
2 changes: 1 addition & 1 deletion docker/nginx/Dockerfile
@@ -1,6 +1,6 @@
FROM nginx

MAINTAINER Eder Soares
LABEL maintainer="Portabilis <contato@portabilis.com.br>"

RUN apt-get update -y

Expand Down