apache
How can I automatically redirect HTTP to HTTPS on Apache servers?
I have actually followed this example and it worked for me 🙂 NameVirtualHost *:80 <VirtualHost *:80> ServerName mysite.example.com Redirect permanent / https://mysite.example.com/ </VirtualHost> <VirtualHost _default_:443> ServerName mysite.example.com DocumentRoot /usr/local/apache2/htdocs SSLEngine On # etc… </VirtualHost> Then do: /etc/init.d/httpd restart
How to remove autostart of apache on macosx
1) The autostart is usually not in the User-Autostart-Items, but you should check them anyway: Open the System-Preferences > Users > Select your user > Start-Objects Check if there is something started you want to deactive and do so if. 2) Normally the start of apache is handled by the launchd-service: You can either change … Read more
Apache – Invalid command ‘SSLMutex’
Replace SSLMutex with Mutex default The SSLMutex has been Dropped after 2.2
htaccess redirect index.php to root (including subdomains)
Do this: RewriteCond %{THE_REQUEST} ^.*/index\.php RewriteRule ^(.*)index.php$ /$1 [R=301,L]
Upgraded to Windows 10 and now WAMP won’t work
Search for “Turn Windows features on or off” on the taskbar. Under “Internet Information Services” deselect “World Wide Web Services” that Microsoft must turn on by default (takes port). Reboot and WAMP came back up as before. With some windows updates it might occur the need to repeat this operation
VirtualHost always returns default host with Apache on Ubuntu 14.04
I was facing this issue, and it turned out I had to disable the default virtual host. sudo a2dissite 000-default.conf Possible Expanation: According to the apache documentation An In-Depth Discussion of Virtual Host Matching: […] If the main server has no ServerName at this point, then the hostname of the machine that httpd is running … Read more
Where can I find good reference/tutorial on writing Apache modules (in C)? [closed]
Here is the list of links about apache module development that I found useful: Apache Tutor Apache Modules Development and Debugging libapr(apache portable runtime) programming tutorial The Apache Modules Book: Application Development with Apache Mailing list archives Apache at WebÞing Writing portable C code with APR Apache Modeling Project You can also download the apache … Read more
How to solve import errors while trying to deploy Flask using WSGI on Apache2
Thanks to zarf and damjan on irc.freenode.org at #pocoo, they were able to help me get this fixed. The problem was the PythonPath was not correct. We fixed this by using the following wsgi.py import sys sys.path.insert(0, “/sites/flaskfirst”) from app import app application = app
HttpClient hangs when doing a second request
In the tutorial posted it below, they did not mention I should use post.releaseConnection(); It caused my code to hangup, so I addeded the releaseConnection() function after every POST/GET. I hope that is the proper way to clean the code up.