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
4ecf2d28
Commit
4ecf2d28
authored
9 years ago
by
root
Browse files
Options
Download
Email Patches
Plain Diff
updated gliders conf
parent
6e90016d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
gliders.nginx.conf
gliders.nginx.conf
+20
-0
No files found.
gliders.nginx.conf
View file @
4ecf2d28
...
...
@@ -43,10 +43,20 @@ server {
add_header
Cache
-
Control
"public"
;
}
location
~ ^/
images
/
vehicles
/(?
P
<
vehicle_type
>[
a
-
zA
-
Z0
-
9
]+)
_
(?
P
<
vehicle_name
>[
a
-
zA
-
Z0
-
9
]+)\.(
png
|
jpg
)$ {
access_log
off
;
error_log
off
;
try_files
$
uri
images
/
vehicles
/$
vehicle_name
.
png
=
404
;
}
location
/
static
/
logs
{
alias
/
var
/
gliders
/
logs
;
}
location
/
var
/
gliders
/
logs
{
alias
/
var
/
gliders
/
logs
;
}
location
@
rewriteapp
{
rewrite
^(.*)$ /
app
.
php
/$
1
last
;
}
...
...
@@ -91,10 +101,20 @@ server {
add_header
Cache
-
Control
"public"
;
}
location
~ ^/
images
/
vehicles
/(?<
vehicle_type
>[
a
-
zA
-
Z0
-
9
]+)
_
(?<
vehicle_name
>[
a
-
zA
-
Z0
-
9
]+)\.(
png
|
jpg
)$ {
access_log
off
;
error_log
off
;
try_files
$
uri
images
/
vehicles
/$
vehicle_type
.
png
=
404
;
}
location
/
static
/
logs
{
alias
/
var
/
gliders
/
logs
;
}
location
/
var
/
gliders
/
logs
{
alias
/
var
/
gliders
/
logs
;
}
location
@
rewriteapp
{
rewrite
^(.*)$ /
app_dev
.
php
/$
1
last
;
}
...
...
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