mod_wsgi app in two different portscentos,django, mod_wsgi & different python installationsInstalling and...
Is this Paypal Github SDK reference really a dangerous site?
Under what conditions can the right to be silence be revoked in the USA?
What would be the most expensive material to an intergalactic society?
If sound is a longitudinal wave, why can we hear it if our ears aren't aligned with the propagation direction?
Can the Witch Sight warlock invocation see through the Mirror Image spell?
Graphic representation of a triangle using ArrayPlot
Can I negotiate a patent idea for a raise, under French law?
Cycles on the torus
How to make sure I'm assertive enough in contact with subordinates?
Movie: boy escapes the real world and goes to a fantasy world with big furry trolls
I can't die. Who am I?
Trocar background-image com delay via jQuery
Writing text next to a table
How to copy the rest of lines of a file to another file
Do black holes violate the conservation of mass?
How to install round brake pads
Is it possible to clone a polymorphic object without manually adding overridden clone method into each derived class in C++?
What does the Digital Threat scope actually do?
Which country has more?
Smooth vector fields on a surface modulo diffeomorphisms
Is divide-by-zero a security vulnerability?
What is the purpose of a disclaimer like "this is not legal advice"?
Why is there an extra space when I type "ls" on the Desktop?
Is there a logarithm base for which the logarithm becomes an identity function?
mod_wsgi app in two different ports
centos,django, mod_wsgi & different python installationsInstalling and running two versions of mod_wsgi in ApacheDeploying Django App with Nginx, Apache, mod_wsgimod_wsgi ImportError with a flask appCan't access apache by port 80 from externalCannot run mod_wsgi on Apache 2.4 x64 Windowsmod_wsgi keeps using system pythonDeploying django on mod_wsgiApache mod_wsgi tuningDjango app not running on apache 2.4 with mod_wsgi daemon
I have a WSGI app working in prod and I want a staging app in the same server, So I configured two virtual hosts in different ports, 80 for prod and 9090 for stag, but every time I request port 9090 it is using the prod app and I dont know why. Here is my configuration:
prod.conf:
LoadModule wsgi_module modules/mod_wsgi.so
NameVirtualHost *:80
ServerName dashboard
<VirtualHost *:80>
ServerName dashboard
WSGIDaemonProcess dashboard display-name=%{GROUP}
WSGIProcessGroup dashboard
WSGIScriptAlias / /srv/dashboard/wsgi.py process-group=dashboard application-group=dashboard
WSGIPassAuthorization on
Alias /static/ /srv/dashboard/static/
Alias /favicon.ico /srv/dashboard/static/favicon.ico
DocumentRoot "/srv/dashboard"
<Directory /srv/dashboard>
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride None
Require all granted
</Directory>
<Directory /srv/dashboard/static>
Options +Indexes +FollowSymLinks +MultiViews
Require all granted
</Directory>
ErrorLog "/var/log/httpd/dashboard-error.log"
CustomLog "/var/log/httpd/dashboard-access.log" common
</VirtualHost>
stag.conf:
LoadModule wsgi_module modules/mod_wsgi.so
Listen 9090
NameVirtualHost *:9090
ServerName dashboard-stagging
<VirtualHost *:9090>
ServerName dashboard-stagging
WSGIDaemonProcess dashboard-stagging display-name=%{GROUP}
WSGIProcessGroup dashboard-stagging
WSGIScriptAlias / /srv/dashboard-stagging/wsgi.py process-group=dashboard-stagging application-group=pnpdash$
WSGIPassAuthorization on
Alias /static/ /srv/dashboard-stagging/static/
Alias /favicon.ico /srv/dashboard-stagging/static/favicon.ico
DocumentRoot "/srv/dashboard-stagging"
<Directory /srv/dashboard-stagging>
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride None
Require all granted
</Directory>
<Directory /srv/dashboard-stagging/static>
Options +Indexes +FollowSymLinks +MultiViews
Require all granted
</Directory>
ErrorLog "/var/log/httpd/dashboard-stag-error.log"
CustomLog "/var/log/httpd/dashboard-stag-access.log" common
</VirtualHost>
My /var/log/httpd/dashboard-stag-access.log keeps empty when I request http://dashboard.mycompany.com:9090 and it uses the app in port 80.
Any guidance?
virtualhost apache-2.4 mod-wsgi
bumped to the homepage by Community♦ 10 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have a WSGI app working in prod and I want a staging app in the same server, So I configured two virtual hosts in different ports, 80 for prod and 9090 for stag, but every time I request port 9090 it is using the prod app and I dont know why. Here is my configuration:
prod.conf:
LoadModule wsgi_module modules/mod_wsgi.so
NameVirtualHost *:80
ServerName dashboard
<VirtualHost *:80>
ServerName dashboard
WSGIDaemonProcess dashboard display-name=%{GROUP}
WSGIProcessGroup dashboard
WSGIScriptAlias / /srv/dashboard/wsgi.py process-group=dashboard application-group=dashboard
WSGIPassAuthorization on
Alias /static/ /srv/dashboard/static/
Alias /favicon.ico /srv/dashboard/static/favicon.ico
DocumentRoot "/srv/dashboard"
<Directory /srv/dashboard>
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride None
Require all granted
</Directory>
<Directory /srv/dashboard/static>
Options +Indexes +FollowSymLinks +MultiViews
Require all granted
</Directory>
ErrorLog "/var/log/httpd/dashboard-error.log"
CustomLog "/var/log/httpd/dashboard-access.log" common
</VirtualHost>
stag.conf:
LoadModule wsgi_module modules/mod_wsgi.so
Listen 9090
NameVirtualHost *:9090
ServerName dashboard-stagging
<VirtualHost *:9090>
ServerName dashboard-stagging
WSGIDaemonProcess dashboard-stagging display-name=%{GROUP}
WSGIProcessGroup dashboard-stagging
WSGIScriptAlias / /srv/dashboard-stagging/wsgi.py process-group=dashboard-stagging application-group=pnpdash$
WSGIPassAuthorization on
Alias /static/ /srv/dashboard-stagging/static/
Alias /favicon.ico /srv/dashboard-stagging/static/favicon.ico
DocumentRoot "/srv/dashboard-stagging"
<Directory /srv/dashboard-stagging>
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride None
Require all granted
</Directory>
<Directory /srv/dashboard-stagging/static>
Options +Indexes +FollowSymLinks +MultiViews
Require all granted
</Directory>
ErrorLog "/var/log/httpd/dashboard-stag-error.log"
CustomLog "/var/log/httpd/dashboard-stag-access.log" common
</VirtualHost>
My /var/log/httpd/dashboard-stag-access.log keeps empty when I request http://dashboard.mycompany.com:9090 and it uses the app in port 80.
Any guidance?
virtualhost apache-2.4 mod-wsgi
bumped to the homepage by Community♦ 10 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have a WSGI app working in prod and I want a staging app in the same server, So I configured two virtual hosts in different ports, 80 for prod and 9090 for stag, but every time I request port 9090 it is using the prod app and I dont know why. Here is my configuration:
prod.conf:
LoadModule wsgi_module modules/mod_wsgi.so
NameVirtualHost *:80
ServerName dashboard
<VirtualHost *:80>
ServerName dashboard
WSGIDaemonProcess dashboard display-name=%{GROUP}
WSGIProcessGroup dashboard
WSGIScriptAlias / /srv/dashboard/wsgi.py process-group=dashboard application-group=dashboard
WSGIPassAuthorization on
Alias /static/ /srv/dashboard/static/
Alias /favicon.ico /srv/dashboard/static/favicon.ico
DocumentRoot "/srv/dashboard"
<Directory /srv/dashboard>
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride None
Require all granted
</Directory>
<Directory /srv/dashboard/static>
Options +Indexes +FollowSymLinks +MultiViews
Require all granted
</Directory>
ErrorLog "/var/log/httpd/dashboard-error.log"
CustomLog "/var/log/httpd/dashboard-access.log" common
</VirtualHost>
stag.conf:
LoadModule wsgi_module modules/mod_wsgi.so
Listen 9090
NameVirtualHost *:9090
ServerName dashboard-stagging
<VirtualHost *:9090>
ServerName dashboard-stagging
WSGIDaemonProcess dashboard-stagging display-name=%{GROUP}
WSGIProcessGroup dashboard-stagging
WSGIScriptAlias / /srv/dashboard-stagging/wsgi.py process-group=dashboard-stagging application-group=pnpdash$
WSGIPassAuthorization on
Alias /static/ /srv/dashboard-stagging/static/
Alias /favicon.ico /srv/dashboard-stagging/static/favicon.ico
DocumentRoot "/srv/dashboard-stagging"
<Directory /srv/dashboard-stagging>
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride None
Require all granted
</Directory>
<Directory /srv/dashboard-stagging/static>
Options +Indexes +FollowSymLinks +MultiViews
Require all granted
</Directory>
ErrorLog "/var/log/httpd/dashboard-stag-error.log"
CustomLog "/var/log/httpd/dashboard-stag-access.log" common
</VirtualHost>
My /var/log/httpd/dashboard-stag-access.log keeps empty when I request http://dashboard.mycompany.com:9090 and it uses the app in port 80.
Any guidance?
virtualhost apache-2.4 mod-wsgi
I have a WSGI app working in prod and I want a staging app in the same server, So I configured two virtual hosts in different ports, 80 for prod and 9090 for stag, but every time I request port 9090 it is using the prod app and I dont know why. Here is my configuration:
prod.conf:
LoadModule wsgi_module modules/mod_wsgi.so
NameVirtualHost *:80
ServerName dashboard
<VirtualHost *:80>
ServerName dashboard
WSGIDaemonProcess dashboard display-name=%{GROUP}
WSGIProcessGroup dashboard
WSGIScriptAlias / /srv/dashboard/wsgi.py process-group=dashboard application-group=dashboard
WSGIPassAuthorization on
Alias /static/ /srv/dashboard/static/
Alias /favicon.ico /srv/dashboard/static/favicon.ico
DocumentRoot "/srv/dashboard"
<Directory /srv/dashboard>
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride None
Require all granted
</Directory>
<Directory /srv/dashboard/static>
Options +Indexes +FollowSymLinks +MultiViews
Require all granted
</Directory>
ErrorLog "/var/log/httpd/dashboard-error.log"
CustomLog "/var/log/httpd/dashboard-access.log" common
</VirtualHost>
stag.conf:
LoadModule wsgi_module modules/mod_wsgi.so
Listen 9090
NameVirtualHost *:9090
ServerName dashboard-stagging
<VirtualHost *:9090>
ServerName dashboard-stagging
WSGIDaemonProcess dashboard-stagging display-name=%{GROUP}
WSGIProcessGroup dashboard-stagging
WSGIScriptAlias / /srv/dashboard-stagging/wsgi.py process-group=dashboard-stagging application-group=pnpdash$
WSGIPassAuthorization on
Alias /static/ /srv/dashboard-stagging/static/
Alias /favicon.ico /srv/dashboard-stagging/static/favicon.ico
DocumentRoot "/srv/dashboard-stagging"
<Directory /srv/dashboard-stagging>
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride None
Require all granted
</Directory>
<Directory /srv/dashboard-stagging/static>
Options +Indexes +FollowSymLinks +MultiViews
Require all granted
</Directory>
ErrorLog "/var/log/httpd/dashboard-stag-error.log"
CustomLog "/var/log/httpd/dashboard-stag-access.log" common
</VirtualHost>
My /var/log/httpd/dashboard-stag-access.log keeps empty when I request http://dashboard.mycompany.com:9090 and it uses the app in port 80.
Any guidance?
virtualhost apache-2.4 mod-wsgi
virtualhost apache-2.4 mod-wsgi
asked May 2 '16 at 22:18
gbriones.gdlgbriones.gdl
1137
1137
bumped to the homepage by Community♦ 10 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 10 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Check the cookie names of your apps called by wsgi (prod and stag), they must not conflict.
Example: I have 2 apps with flask and wsgi, using the same program with different parameters. I have to assign different values to config["SESSION_COOKIE_NAME"] to avoid conflicts.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f774417%2fmod-wsgi-app-in-two-different-ports%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Check the cookie names of your apps called by wsgi (prod and stag), they must not conflict.
Example: I have 2 apps with flask and wsgi, using the same program with different parameters. I have to assign different values to config["SESSION_COOKIE_NAME"] to avoid conflicts.
add a comment |
Check the cookie names of your apps called by wsgi (prod and stag), they must not conflict.
Example: I have 2 apps with flask and wsgi, using the same program with different parameters. I have to assign different values to config["SESSION_COOKIE_NAME"] to avoid conflicts.
add a comment |
Check the cookie names of your apps called by wsgi (prod and stag), they must not conflict.
Example: I have 2 apps with flask and wsgi, using the same program with different parameters. I have to assign different values to config["SESSION_COOKIE_NAME"] to avoid conflicts.
Check the cookie names of your apps called by wsgi (prod and stag), they must not conflict.
Example: I have 2 apps with flask and wsgi, using the same program with different parameters. I have to assign different values to config["SESSION_COOKIE_NAME"] to avoid conflicts.
answered May 3 '16 at 14:00
Mourad Ben CheikhMourad Ben Cheikh
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f774417%2fmod-wsgi-app-in-two-different-ports%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown