Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pleroma
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nick Thomas
pleroma
Commits
73ca1874
Commit
73ca1874
authored
6 years ago
by
Stanislas
Browse files
Options
Downloads
Patches
Plain Diff
Indentation for Apache vhost
parent
d7c2909c
Branches
fix/rm-user-task
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
installation/pleroma-apache.conf
+24
-25
24 additions, 25 deletions
installation/pleroma-apache.conf
with
24 additions
and
25 deletions
installation/pleroma-apache.conf
+
24
−
25
View file @
73ca1874
<
VirtualHost
*:
80
>
#Example configuration for when Apache httpd and Pleroma are on the same host.
#Needed modules: proxy proxy_http proxy_wstunnel rewrite
#This assumes a Debian style Apache config. Put this in /etc/apache2/sites-available
#Doesn't include SSL, just run certbot and let it take care of that.
#Change this:
ServerName
pleroma
.
example
.
com
RewriteEngine
On
RewriteCond
%{
HTTP
:
Connection
}
Upgrade
[
NC
]
RewriteCond
%{
HTTP
:
Upgrade
}
websocket
[
NC
]
RewriteRule
/(.*)
ws
://
localhost
:
4000
/$
1
[
P
,
L
]
ProxyRequests
off
ProxyPass
/
http
://
localhost
:
4000
/
ProxyPassReverse
/
http
://
localhost
:
4000
/
#Change this too:
RequestHeader
set
Host
"pleroma.example.com"
ProxyPreserveHost
On
ErrorLog
${
APACHE_LOG_DIR
}/
error
.
log
CustomLog
${
APACHE_LOG_DIR
}/
access
.
log
combined
#Example configuration for when Apache httpd and Pleroma are on the same host.
#Needed modules: proxy proxy_http proxy_wstunnel rewrite
#This assumes a Debian style Apache config. Put this in /etc/apache2/sites-available
#Doesn't include SSL, just run certbot and let it take care of that.
#Change this:
ServerName
pleroma
.
example
.
com
RewriteEngine
On
RewriteCond
%{
HTTP
:
Connection
}
Upgrade
[
NC
]
RewriteCond
%{
HTTP
:
Upgrade
}
websocket
[
NC
]
RewriteRule
/(.*)
ws
://
localhost
:
4000
/$
1
[
P
,
L
]
ProxyRequests
off
ProxyPass
/
http
://
localhost
:
4000
/
ProxyPassReverse
/
http
://
localhost
:
4000
/
#Change this too:
RequestHeader
set
Host
"pleroma.example.com"
ProxyPreserveHost
On
ErrorLog
${
APACHE_LOG_DIR
}/
error
.
log
CustomLog
${
APACHE_LOG_DIR
}/
access
.
log
combined
</
VirtualHost
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment