Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirection error for tmp files in .htaccess #4

Open
biocyberman opened this issue Oct 22, 2010 · 1 comment
Open

Redirection error for tmp files in .htaccess #4

biocyberman opened this issue Oct 22, 2010 · 1 comment

Comments

@biocyberman
Copy link

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
Copy link
Owner

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
Projects
None yet
Development

No branches or pull requests

2 participants