You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing issue deploying a nicegui application on shared hosting using cPanel due to hosting restrictions:
Only port 80 is allowed for web applications.
No root access is available to bind directly to port 80.
Other ports like 8080 are blocked by the hosting provider for security reasons.
What I Tried:
.htaccess Redirect for HTTP and WebSocket (WS):
Added .htaccess rules for redirecting HTTP requests to the NiceGUI app.
Result: Only static components load, and dynamic functionalities fail to work.
a2wsgi and FastAPI Integration:
Converted the NiceGUI app to a WSGI application using a2wsgi.
Ran it with FastAPI under the shared hosting environment.
Result: Deployment fails entirely.
Key Restrictions:
The shared hosting allows only WSGI-based apps (e.g., Flask, Django).
Must bind to port 80 through cPanel's configured WSGI environment.
Questions:
Is there a recommended way to adapt NiceGUI to shared hosting environments with WSGI requirements?
Could you provide guidance on bridging WebSocket support in such restricted setups?
Are there any configurations or deployment methods that ensure compatibility with shared hosting?
Environment:
Hosting Panel: cPanel
Server Type: Shared Hosting
Ports: Only 80 allowed; no root access for direct binding
WSGI app only
Any help or suggestions would be greatly appreciated. Thank you!
This discussion was converted from issue #4158 on January 06, 2025 16:18.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description
I'm facing issue deploying a nicegui application on shared hosting using cPanel due to hosting restrictions:
Only port 80 is allowed for web applications.
No root access is available to bind directly to port 80.
Other ports like 8080 are blocked by the hosting provider for security reasons.
What I Tried:
Added .htaccess rules for redirecting HTTP requests to the NiceGUI app.
Result: Only static components load, and dynamic functionalities fail to work.
a2wsgi and FastAPI Integration:
Ran it with FastAPI under the shared hosting environment.
Result: Deployment fails entirely.
Key Restrictions:
The shared hosting allows only WSGI-based apps (e.g., Flask, Django).
Must bind to port 80 through cPanel's configured WSGI environment.
Questions:
Is there a recommended way to adapt NiceGUI to shared hosting environments with WSGI requirements?
Could you provide guidance on bridging WebSocket support in such restricted setups?
Are there any configurations or deployment methods that ensure compatibility with shared hosting?
Environment:
Hosting Panel: cPanel
Server Type: Shared Hosting
Ports: Only 80 allowed; no root access for direct binding
WSGI app only
Any help or suggestions would be greatly appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions