Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
3b64f642
Commit
3b64f642
authored
Sep 01, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more complete example for running under path
Issue #824 Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
2b82a8f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
10 deletions
+38
-10
docs/admin/install.rst
docs/admin/install.rst
+6
-5
examples/apache-path.conf
examples/apache-path.conf
+32
-5
No files found.
docs/admin/install.rst
View file @
3b64f642
...
...
@@ -737,9 +737,12 @@ Configuration for uwsgi (also available as :file:`examples/weblate.uwsgi.ini`):
Running Weblate under path
++++++++++++++++++++++++++
Minimalistic configuration to serve Weblate under ``/weblate`` (you will need
to include portions of above full configuration to allow access to the files).
Again using mod_wsgi (also available as :file:`examples/apache-path.conf`):
.. versionchanged:: 1.3
This is supported since Weblate 1.3.
Sample Apache configuration to serve Weblate under ``/weblate``. Again using
mod_wsgi (also available as :file:`examples/apache-path.conf`):
.. literalinclude:: ../../examples/apache-path.conf
:language: apache
...
...
@@ -750,8 +753,6 @@ Additionally you will have to adjust :file:`weblate/settings.py`:
URL_PREFIX = '/weblate'
.. note:: This is supported since Weblate 1.3.
.. _appliance:
SUSE Studio appliance
...
...
examples/apache-path.conf
View file @
3b64f642
# Example Apache configuration for running Weblate under /weblate path
# Path to Weblate code
WSGIPythonPath
/
usr
/
share
/
weblate
# If using virtualenv, you need to add it to search path as well:
# WSGIPythonPath /usr/share/weblate:/path/to/your/venv/lib/python2.7/site-packages
<
VirtualHost
*:
80
>
ServerAdmin
admin
@
image
.
weblate
.
org
ServerName
image
.
weblate
.
org
# Path to Weblate WSGI handler
WSGIScriptAlias
/
weblate
"/usr/share/weblate/weblate/wsgi.py"
Alias
/
weblate
/
robots
.
txt
/
usr
/
share
/
weblate
/
data
/
static
/
robots
.
txt
Alias
/
weblate
/
favicon
.
ico
/
usr
/
share
/
weblate
/
data
/
static
/
favicon
.
ico
# Aliases to serve static files
Alias
/
static
/ /
usr
/
share
/
weblate
/
data
/
static
/
Alias
/
weblate
/
doc
/ /
usr
/
share
/
doc
/
packages
/
weblate
/
html
/
Alias
/
weblate
/
static
/ /
usr
/
share
/
weblate
/
data
/
static
/
<
Directory
/
usr
/
share
/
weblate
/
data
/
static
/>
Require
all
denied
</
Directory
>
<
Directory
/
usr
/
share
/
doc
/
packages
/
weblate
/
html
/>
Require
all
denied
</
Directory
>
<
Directory
/
usr
/
share
/
weblate
/
weblate
/
examples
/>
Require
all
denied
</
Directory
>
WSGIScriptAlias
/
weblate
/
usr
/
share
/
weblate
/
weblate
/
wsgi
.
py
WSGIPassAuthorization
On
<
Directory
/
usr
/
share
/
weblate
/
weblate
>
<
Files
wsgi
.
py
>
Require
all
denied
</
Files
>
</
Directory
>
</
VirtualHost
>
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