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

  • SEARCH
  • Home
  • 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 6048081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:25:25+00:00 2026-05-23T07:25:25+00:00

I have 2 copies of my website synced with Subversion. One live version and

  • 0

I have 2 copies of my website synced with Subversion. One live version and one developer version. What I like to do is to password protect the developer version, using a .htaccess file:

AuthType Basic
AuthName "Restricted Files"
AuthUserFile ../.htpasswd
AuthPGAuthoritative Off
Require user dev 

Is there a way to sync this .htaccess file to the live version without the password protection there?

I was thinking about something like

[if file exists ../.htpasswd]
  AuthType Basic
  AuthName "Restricted Files"
  AuthUserFile ../.htpasswd
  AuthPGAuthoritative Off
  Require user dev 
[/if]

or

[if currentDir = /path/to/dev/version]
...
[/if]
  • 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-23T07:25:25+00:00Added an answer on May 23, 2026 at 7:25 am

    Finaly found the answer over here:
    How can I password protect dev but not live while using SVN?

    If mod_setenvif is enabled one can set different env vars

    SetEnvIfNoCase ^HOST$ .+ unauthenticated
    SetEnvIfNoCase ^HOST$ ^dev\.example\.com$ !unauthenticated
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have copied zipped file from the playframework.org website and unzipped it at a
I have SMO code which copies tables from one database to another. It runs
I have JavaScript code which copies the value of input file and paste it
I have the following code which copies property values from one object to another
I have clients who still using dot matrix for making copies of printed documents
I have created an Asp.net website using VS 2008 and SQL Express 2008 on
I want to have two separate interfaces to my website, one that is silverlight,
Summary: I have an ASP.NET MVC website in IIS named 'Website' using an AppPool
I have two copies of the same website on my IIS7.5 windows 2008 server:
Say I have two web servers, one local development and one live. Under SVN

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.