Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3482294
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:32:32+00:00 2026-05-18T10:32:32+00:00

i just installed nginx up and running for serving static content on my site.

  • 0

i just installed nginx up and running for serving static content on my site.
it works great but the apache rewrite rule about images (ofcourse) stoped working.

and i don’t have an idea how to convert and in whcih file to put .

This is what i was using on apache :

RewriteCond %{HTTP_REFERER} !^http://(www\.)?imgzzz.com/.*$ [NC]
RewriteRule i/image_(\d+)\.(jpg|jpeg|gif) pic/$1 [L]

Its purpose is to redirect directly accessed images to the image page instead.

Thanks in advance 🙂
cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T10:32:33+00:00Added an answer on May 18, 2026 at 10:32 am

    k i found the answer myself on doing some research. leaving it here in case anyone else needs it

    location /i/image_ {
    
    location ~ ^/i/image_(?<IMAGE>\d+)\.(jpg|jpeg|gif)$ {
    valid_referers imgzzz.com www.imgzzz.com;
    
    if ($invalid_referer) {
    rewrite ^ /pic/$IMAGE;
    }
    }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ubuntu server running nginx. I just tried to enable a vhost
I just installed Nginx listening on 8083 I can get a HTTP response when
Just installed AnkhSVN and I see the equivalent of svn up but I'd prefer
Just installed the latest SDK for iPhone 2.1. When I go to File ->
I'm running an ubuntu 9.10 server on an amd-64 platform. Everything's pretty much standard,
Hello I asked this question to superuser but I did not get a good
I'm vaguely aware that on a computer joined to a domain IE can be
We have an existing windows desktop app written in C# 6 that uses an
I am in the early stages of building an app using Rails 3. User
I have a project coming up for client who is basically happy with how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.