apache tomcat

Relationship between Python Flask and Apache (Particularly for User-Viewed Logging)

So I’ve got some general questions for which, hopefully, your answers will help me better understand the relationship between Python Flask and Apache. The project I’m currently working on is a Python tool which run takes some time to run (~3 seconds per line in an input file). It works as expected when run from the command line. For this…
Read more

Htaccess redirect 301 not working

I want to redirect 301 my old domain to new one, and also an indexed old page to new page. here is the code: Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^olddomain.com$ [NC] RewriteRule ^(.*)$ http://newdomain.com$1 [L,R=301] Redirect 301 /oldpage http://newdomain.com/newpage? RewriteRule ^oldpage$ http://newdomain.com/newpage? [R=301,L] but both not working… any solution? Source: apache

Apache : Directory index forbidden by Options directive:/srv/www/htdocs/testFolder

Saw duplicate questions and solutions, does not seem to solve the below problem I am trying to allow access to a folder through apache, and the /var/log/apache2/ throws the above error. My httpd.conf is # forbid access to the entire filesystem by default <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Allow from all </Directory> I tried with Options +Indexes,…
Read more

Getting error while using Hive in command line

I have been setup HIVE in bashrc file. It was working fine. But suddenly it started throwing error while I want to use Hive shell in command prompt. This is the Hive setup in bashrc # Set HIVE_HOME export HIVE_HOME=”BigDataExperiment/apache-hive-1.2.0-bin” PATH=$PATH:$HIVE_HOME/bin export PATH while I want to open hive shell in command prompt gives this error-Earlier it was working fine…
Read more

How to hide Last Modif date in Apache webserver directory listing

I’m using Apache HTTPD v2.4 and mod_autoindex. Here a my IndexOptions: IndexOptions +Charset=UTF-8 +FancyIndexing +IgnoreCase +FoldersFirst +XHTML +HTMLTable +SuppressRules +SuppressDescription +IconsAreLinks +NameWidth=* SuppressLastModified The problem I have is that when I add the SuppressLastModified option the generated HTML code changes from displaying directory contents in a table (using <table> tag) to displaying the files as list items (using <ul> tag)….
Read more

htaccess forward all users to a single file

Good day, I am using a framework that uses a .htaccess file to forward all requests to a sub file core/index.php I used the following .htaccess file code : <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ core/ [L] # If the request is not for a valid directory RewriteCond %{REQUEST_FILENAME} !-d # If the request is not for a valid file…
Read more

mod_wsgi with python on virtualenv

I’v compiled python 2.7.10 from sources with the following options: –prefix=/path/to/alt/python –enable-shared –with-threads LDFLAGS=”-Wl,–rpath=/path/to/alt/python/lib” After this I’ve compiled mod_wsgi with the following options: –with-python=/usr/local/bin/python2.7 This is how my httpd.conf file looks like WSGIPythonHome /path/to/project/env/ WSGIScriptAlias / /path/to/project/src/project/wsgi.py WSGIPythonPath /path/to/project/env/lib/python2.7/site-packages WSGIDaemonProcess project python-path=/path/to/project/env/lib/python2.7/site-packages <VirtualHost *:80> <Directory /path/to/project> <Files wsgi.py> </Files> </Directory> </VirtualHost> When I am trying to access my project from…
Read more

How to redirect users and integrate whmcs bridge using htaccess?

I have a wordpress blog and whmcs client area. For bridging whmcs and wordpress I have used the whmcs-bridge plugin. It allows me to access the whmcs area using the url, /client-area?ccce=cart for page /clients/cart.php /clients/cart.php –> /client-area?ccce=cart Thus, all the pages within the clients/ folder are redirected to the /client-area page with argument (without the extenstion ,.php) How can…
Read more

Change apache localhost/~USER/ to localhost/

I’ve set up my own webserver with apache and linked it to my ~/Sites folder. But its accessible trough http://localhost/~USERNAME/ How can I set this so it’s accessible trough just http://localhost/ I’ve tried to look it up but my knowledge on this matter doesn’t reach far enough to understand most of the things and I’m afraid I’ll break something. …
Read more

Error on wamp server

I have a problem with Wamp server (php5.3.13-httpd2.2.22-mysql5.5.24). When I start the Server, it refuses to go online. It brings this Error “Could Not execute menu ITEM (Internal Error)” Any Assistance will be highly appreciated Source: apache