Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Owain Jones
gliders-webserver
Commits
f6bfa9b6
Commit
f6bfa9b6
authored
9 years ago
by
Owain Jones
Browse files
Options
Download
Email Patches
Plain Diff
updated nginx configs
parent
1e1e7112
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
14 deletions
+19
-14
apc.nginx.conf
apc.nginx.conf
+1
-2
elasticsearch.nginx.conf
elasticsearch.nginx.conf
+1
-2
gliders.nginx.conf
gliders.nginx.conf
+3
-3
hhvm.nginx.conf
hhvm.nginx.conf
+9
-0
hhvm.service
hhvm.service
+1
-1
install.sh
install.sh
+2
-2
phpci.nginx.conf
phpci.nginx.conf
+1
-2
phpmyadmin.nginx.conf
phpmyadmin.nginx.conf
+1
-2
No files found.
apc.nginx.conf
View file @
f6bfa9b6
server
{
listen
80
;
listen
8080
;
server_name
apc
.
dev
.
gliders
.
vm
;
server_name
apc
.
dev
.
gliders
.
*
;
root
/
home
/
gliders
/
code
/
APC
-
Admin
;
error_log
/
var
/
log
/
nginx
/
apc
.
error
.
log
;
...
...
This diff is collapsed.
Click to expand it.
elasticsearch.nginx.conf
View file @
f6bfa9b6
server
{
listen
80
;
listen
8080
;
server_name
es
.
dev
.
gliders
.
vm
;
server_name
es
.
dev
.
gliders
.
*
;
location
/ {
proxy_pass
http
://
127
.
0
.
0
.
1
:
9200
;
}
...
...
This diff is collapsed.
Click to expand it.
gliders.nginx.conf
View file @
f6bfa9b6
...
...
@@ -16,7 +16,7 @@ map $host $symfony_root_dev {
server
{
listen
80
;
server_name
gliders
.
vm
gliders
.
odj
.
me
;
server_name
gliders
.
*
;
root
$
symfony_root
/
web
;
error_log
/
var
/
log
/
nginx
/
gliders
.
error
.
log
;
...
...
@@ -67,7 +67,7 @@ server {
# pass the PHP scripts to FastCGI server from upstream phpfcgi
location
~ ^/(
app
|
app_dev
|
config
)\.
php
(/|$) {
fastcgi_pass
php
fcgi
;
fastcgi_pass
hhvm
fcgi
;
include
fastcgi_params
;
fastcgi_split_path_info
^(.+\.
php
)(/.*)$;
fastcgi_param
SCRIPT_FILENAME
$
symfony_root
/
web
$
fastcgi_script_name
;
...
...
@@ -78,7 +78,7 @@ server {
server
{
listen
80
;
server_name
dev
.
gliders
.
vm
dev
.
gliders
.
odj
.
me
;
server_name
dev
.
gliders
.
*
;
root
$
symfony_root_dev
/
web
;
...
...
This diff is collapsed.
Click to expand it.
hhvm.nginx.conf
0 → 100644
View file @
f6bfa9b6
server
{
listen
80
;
server_name
hhvm
.
dev
.
gliders
.*;
location
/ {
fastcgi_pass
127
.
0
.
0
.
1
:
9001
;
include
fastcgi_params
;
}
}
This diff is collapsed.
Click to expand it.
hhvm.service
View file @
f6bfa9b6
...
...
@@ -4,7 +4,7 @@ Description=HHVM HipHop Virtual Machine (FCGI)
[Service]
ExecStartPre
=
/bin/mkdir -p /var/run/hhvm
ExecStartPre
=
/bin/chown -R gliders:nginx /var/run/hhvm
ExecStart
=
/usr/local/bin/hhvm --user gliders --mode daemon -d hhvm.server.type=fastcgi -d hhvm.server.file_socket=/var/run/hhvm/sock
ExecStart
=
/usr/local/bin/hhvm --user gliders --mode daemon -d hhvm.server.type=fastcgi -d hhvm.server.file_socket=/var/run/hhvm/sock
-d hhvm.admin_server.port=9001 -d hhvm.admin_server.password=gliders9876
[Install]
WantedBy
=
multi-user.target
This diff is collapsed.
Click to expand it.
install.sh
View file @
f6bfa9b6
...
...
@@ -87,7 +87,7 @@ mkdir -p /var/gliders/logs /var/gliders/www/ /var/gliders/www_dev/
chmod
-R
g+x /home/gliders
chown
-R
gliders:nginx /var/gliders
cp
nginx.conf /etc/nginx/
cp
gliders
.nginx.conf /etc/nginx/conf.d/
cp
*
.nginx.conf /etc/nginx/conf.d/
chown
gliders:nginx /etc/nginx/conf.d/gliders.nginx.conf
# allow gliders user to edit their nginx config?
systemctl
enable
nginx
...
...
@@ -103,7 +103,7 @@ systemctl start firewalld
firewall-cmd
--permanent
--zone
=
public
--add-service
=
ssh
firewall-cmd
--permanent
--zone
=
public
--add-service
=
http
firewall-cmd
--permanent
--zone
=
public
--add-service
=
https
firewall-cmd
--permanent
--zone
=
public
--add-service
=
80
8
0/tcp
# port 8080 for dev branch of site
firewall-cmd
--permanent
--zone
=
public
--add-service
=
80
0
0/tcp
# port 8080 for dev branch of site
firewall-cmd
--reload
# Set the system timezone to UTC
...
...
This diff is collapsed.
Click to expand it.
phpci.nginx.conf
View file @
f6bfa9b6
...
...
@@ -6,9 +6,8 @@
server
{
listen
80
;
listen
8080
;
server_name
phpci
.
dev
.
gliders
.
vm
;
server_name
phpci
.
dev
.
gliders
.
*
;
root
/
home
/
gliders
/
code
/
phpci
/
public
;
error_log
/
var
/
log
/
nginx
/
phpci
.
error
.
log
;
...
...
This diff is collapsed.
Click to expand it.
phpmyadmin.nginx.conf
View file @
f6bfa9b6
# Configuration for phpMyAdmin -- set it up to use php-fpm etc.
server
{
listen
80
;
listen
8081
;
root
/
home
/
gliders
/
phpma
;
index
index
.
php
index
.
html
index
.
htm
;
server_name
_
;
# update with actual hostname when we get it
server_name
phpma
.
dev
.
gliders
.*
;
# update with actual hostname when we get it
location
/ {
try_files
$
uri
$
uri
/ /
index
.
php
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment