-
G girish moved this topic from App Packaging & Development on
-
@girish the new lamp app does have the modules enabled, but still no go via .htaccess file.
root@080866d1-7701-4faf-bc28-d6d63dbf252b:/app/data/apache# apache2ctl -M | grep proxy proxy_module (shared) proxy_http_module (shared)Oh I see; you added the proxypass block in the apache/app.conf instead.
<Location "/"> ProxyPass "http://localhost:8000" </Location>Not sure why .htaccess doesn't work as the rewrite_module is also loaded.
-
Hmm, @girish did you push a custom package?

After updating the LAMP app on my server, it still doesn't proxy properly via .htaccess file.
My version:

-
@girish the new lamp app does have the modules enabled, but still no go via .htaccess file.
root@080866d1-7701-4faf-bc28-d6d63dbf252b:/app/data/apache# apache2ctl -M | grep proxy proxy_module (shared) proxy_http_module (shared)Oh I see; you added the proxypass block in the apache/app.conf instead.
<Location "/"> ProxyPass "http://localhost:8000" </Location>Not sure why .htaccess doesn't work as the rewrite_module is also loaded.
@robi said in How to run AI models in LAMP App:
Not sure why .htaccess doesn't work as the rewrite_module is also loaded.
There is something wrong with that rule but I don't know htaccess configuration well enough. In fact, I wasn't aware of P before this. If you put
RewriteRule "(.*)$" "http://localhost:8000/$1" [P,L]it does something (i.e a not found page from the node app atleast).@robi said in How to run AI models in LAMP App:
RewriteRule ^/(.*)?$ http:/localhost:8000/$1 [P,L]
Also, there is a missing slash after http.
-
@robi said in How to run AI models in LAMP App:
Not sure why .htaccess doesn't work as the rewrite_module is also loaded.
There is something wrong with that rule but I don't know htaccess configuration well enough. In fact, I wasn't aware of P before this. If you put
RewriteRule "(.*)$" "http://localhost:8000/$1" [P,L]it does something (i.e a not found page from the node app atleast).@robi said in How to run AI models in LAMP App:
RewriteRule ^/(.*)?$ http:/localhost:8000/$1 [P,L]
Also, there is a missing slash after http.
-
R robi referenced this topic on
-
If you don't care to use the proxy features in LAMP via Apache2, you can launch the App-Proxy app from the App Store and configure it on a new subdomain to proxy to any of the LAMP installed apps on local ports via the internal Cloudron IP, ie. http://172.18.xx.xxx:port (make sure to use HTTP and not HTTPS).
You can get the internal IP from the web terminal by typing
hostname -i -
R robi referenced this topic on
-
R robi referenced this topic on
-
R robi referenced this topic on
-
R robi referenced this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
