apache2

Connecting Apache to Tomcat with AJP

强颜欢笑 提交于 2021-01-28 08:29:40
问题 I am trying to launch a localhost application on Ubuntu with Apache and proxy it to Tomcat so that I can use .jsp pages in my application. It seems that this is possible and I think that I am pretty close, but I can't seem to get it quite right. Any help is greatly appreciated! I've never used apache or tomcat before, so please don't hate me if any of this seems stupid. I've got Apache hosting a site at localhost with this code for the host: <VirtualHost *:80> ServerName localhost ServerAlias

ImportError: No module named 'matplotlib._path' when running a python script in apache2

爱⌒轻易说出口 提交于 2021-01-28 05:45:39
问题 I have been busting my head over this for a few hours now but I cant nail down the reason why this error occurs. I am trying to run a simple python script in my apache2 server- #!/usr/bin/python3.5 import cgi import cgitb cgitb.enable() import sys sys.path.insert(0, "/home/aswin/anaconda3/lib/python3.6/site-packages") sys.path.insert(0,"/usr/local/lib/python3.5/dist-packages") # HEADERS print("Content-Type:text/html; charset=UTF-8") print() # blank line required at end of headers # CONTENT

Dynamic hostname and port proxying with apache

自古美人都是妖i 提交于 2021-01-27 20:10:25
问题 Is it possible to use apache to proxy a hostname and port dynamically like so: /<PORT>/<HOSTNAME> -> http://<HOSTNAME>.domain.local:<PORT> I've tried the using ProxyPassMatch : ProxyPassMatch "^/([0-9]+)/(host-[0-9]+)$" "http://$2.domain.local:$1" But apache throws a syntax error AH00526. This is using apache 2.4.7. 回答1: From Apache Docs: The URL argument must be parsable as a URL before regexp substitutions (as well as after). This limits the matches you can use. The only workaround I can

Apache + mod_wsgi + flask app: “Unable to get bucket brigade for request” error in logs

限于喜欢 提交于 2021-01-27 17:55:46
问题 I have a apache2/mod_wsgi/flask/python2.7 app. Sometimes such line appears in log file: Partial results are valid but processing is incomplete: [client 45.132.96.124:34500] mod_wsgi (pid=13920): Unable to get bucket brigade for request., referer: https://my-site.com/some_url/ What is "bucket brigade" and what this error actually means? Is it apache error or wsgi server error? What does lead to this error? If this is some unhandled exception - how to handle it and where? Thanks in advance. 回答1

How to configure the docker file to run cgi-script like perl

坚强是说给别人听的谎言 提交于 2021-01-21 08:31:49
问题 I have this files: index.php Dockerfile /conf/myawesomesite.conf cgi-bin/helloworld.pl in /conf/myawesomesite.conf: <VirtualHost *:80> ServerAdmin webmaster@myawesomesite.com ServerName myawesomesite.com ServerAlias www.myawesomesite.com DocumentRoot /var/www/html/myawesomesite.com/httpdocs ErrorLog /var/www/myawesomesite.com/logs/error.log CustomLog /var/www/myawesomesite.com/logs/access.log combined Options ExecCGI AddHandler cgi-script .pl </VirtualHost> in Dockerfile: FROM ubuntu:16.04 ##

Does PHP has its own Web Server? [duplicate]

痞子三分冷 提交于 2021-01-04 12:43:26
问题 This question already has answers here : Is there any way to test PHP locally without installing a server? (9 answers) Closed 19 days ago . I'm working on a Symfony 3 Project on my machine Ubuntu 16 and I haven't install XAMPP or LAMP yet and I launch php bin/console server:start [OK] Server listening on http://127.0.0.1:8000 So the HTTP request to localhost:8000 is responding correctly but I'm asking if that means automatically that apache is installed in my machine ? I see many alternatives

Does PHP has its own Web Server? [duplicate]

大兔子大兔子 提交于 2021-01-04 12:43:17
问题 This question already has answers here : Is there any way to test PHP locally without installing a server? (9 answers) Closed 19 days ago . I'm working on a Symfony 3 Project on my machine Ubuntu 16 and I haven't install XAMPP or LAMP yet and I launch php bin/console server:start [OK] Server listening on http://127.0.0.1:8000 So the HTTP request to localhost:8000 is responding correctly but I'm asking if that means automatically that apache is installed in my machine ? I see many alternatives

Captive Portal for Android Phone did not pop up

家住魔仙堡 提交于 2021-01-01 07:27:33
问题 I used hostapd, dnsmasq and apache2 for implementing the wifi-hotspot with captive portal on my Raspberry Pi 3B+, before I implement this project, I have never get in touch with wifi networks. Hence I search a lot of post on how to implement one. Below is the configuration I used: /etc/apache/apache.conf: # Apple RewriteEngine on RewriteCond %{HTTP_USER_AGENT} ^CaptiveNetworkSupport(.*)$ [NC] RewriteCond %{HTTP_HOST} !^192.168.0.200$ RewriteRule ^(.*)$ http://192.168.0.200/index.html [L,R=302

Captive Portal for Android Phone did not pop up

南楼画角 提交于 2021-01-01 07:24:20
问题 I used hostapd, dnsmasq and apache2 for implementing the wifi-hotspot with captive portal on my Raspberry Pi 3B+, before I implement this project, I have never get in touch with wifi networks. Hence I search a lot of post on how to implement one. Below is the configuration I used: /etc/apache/apache.conf: # Apple RewriteEngine on RewriteCond %{HTTP_USER_AGENT} ^CaptiveNetworkSupport(.*)$ [NC] RewriteCond %{HTTP_HOST} !^192.168.0.200$ RewriteRule ^(.*)$ http://192.168.0.200/index.html [L,R=302

Set up Ubuntu Apache2 SSL using .pem and .key from Cloudflare

二次信任 提交于 2020-12-15 04:57:57
问题 I am using Cloudflare to set up a secure connection on Ubuntu 20 using Apache2. I used their Origin Server wizard to generate the following files: example.com.pem (Origin Certificate) example.com.key file (Private key) I gave them the extensions suggested by Cloudflare. I ran this: sudo a2enmod ssl sudo systemctl restart apache2 This is my setup: <VirtualHost *:443> .... SSLEngine on SSLCertificateFile /path/example.com.pem SSLCertificateKeyFile /path/example.com.key The non-secure site works