Redirection error for tmp files in .htaccess #4

biocyberman opened this Issue Oct 22, 2010 · 1 comment


None yet
2 participants

There is an bug in <metarep_home_dir>/.htaccess which leads to following 404 error:

Not Found

Error: The requested address '/tmp/jcvi_metagenomics_report_timestamp_hclust_plot.pdf' was not found on this server.

This is my <metarep_home_dir>/.htaccess file's content:

   RewriteEngine on
   #Exclude METAREP_TMP_DIR tempt dir, pdf files and txt files from redirection
   RewriteRule ^(tmp|.*\.pdf|.*\.txt) - [L]
   RewriteBase /metarep
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]

Without the added line, users always get 404 error when trying to generate plots, unless they put temp folder inside <metarep_home_dir>/app/webroot


jcvi commented Oct 26, 2010

Thanks for pointing this out. We get around this by creating a symbolic link tmp under the app/webroot that points to our METAREP_TMP directory

app/webroot/tmp ->METAREP_TMP

I have added this to WIKI installation instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment