CloudLinux Python Selector - Django installation redirect /home/<user>/myapp/

Max629

New member
Joined
Jul 26, 2021
Messages
1
We ordered a trial of CloudLinux and did multiple clean installs with DirectAdmin. Now I’m running some test with Python apps with the Selector.

I followed multiple online manuals of a installation with Django (A2 Hosting, Antagonist, YouTube). After all this manuals the app is available on the clean domain (www.example.com).

All the test installations on our server redirect to www.example.com/home/<user>/myapp/.

It looks like this is a server configuration, because all the manuals online don’t do any modifications to the URLs. Created multiple support tickets with CloudLinux, but they can’t help. They say it is out of their scope and application releated.

Maybe it is fixable within the Django app, but for future customers we of course want that the app automaticly starts on www.example.com and not with /home/<user>/myapp/.

I think it has something to do with Apache of WSGI. Any ideas?
 
I don't use Python or Django myself. But could it be that the installation setup is picking the dir it's in by default or something?

A common thing to modify in such applications are the paths to make sure it's working correctly.

Unless someone else has another suggestion, I would look into the applications files for this path. If it's in there, then indeed the solution is there. And then you may want to find out why the application is setting that path there and if that can be modified for future use cases.

So long story short, find out if that path is in the app config, if it is, a server config can't fix it I'd say.
 
Back
Top