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 6121299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:46:05+00:00 2026-05-23T15:46:05+00:00

I wanted to map my custom domain to a design document _rewrite. // Configuration

  • 0

I wanted to map my custom domain to a design document _rewrite.

// Configuration

vhosts     www.myapp.com    /myapp/_design/user/_rewrite

// Rewrites

[{
  "from": "",
  "to": "static/browser/index.html"
}, {
  "from": "*",
  "to": "*"
}]

The first route works fine. I can access the index.html with http://www.myapp.com. However, now I can’t access http://www.myapp.com/_utils. It says _all_dbs can’t be found in the browser console. All other APIs stop working as well.

I guess this is because that path is now converted to /myapp/_design/user/_utils.

How can I fix this?

  • 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-23T15:46:06+00:00Added an answer on May 23, 2026 at 3:46 pm

    _utils and other “special” paths do not cooperate with vhosts very well. Last I checked (version 1.0.2 I think), _utils will display the Futon UI however its AJAX calls to _all_dbs and others will fail and it is a total mess.

    I suggest a strict separation between your app and your internal management. Use the vhost for the application, but always avoid vhosts when accessing Futon or other tools.

    There are a few tricks to avoid your vhost.

    • Use the server IP address instead of the domain name: http://1.2.3.4:5984
    • Use a different port if possible: http://www.myapp.com:5984 or https://www.myapp.com:6984
    • Add an alternative DNS entry pointing to the same couch and use that: http://futon.myapp.com
    • Add a dot at the end of your domain. http://www.myapp.com./ — This is very sneaky (or clever). That is a valid DNS name however CouchDB treats it differently from www.myapp.com therefore you will not trigger the vhost.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wanted to create smth similar to this one Kansas county map where user
I wanted to show the users Name Address (see www.ipchicken.com ), but the only
Basically, I wanted to add a few custom methods to google.maps.Map and Rectangle classes.
I wanted to make Map of Collections in Java, so I can make something
I wanted to compare the performance characteristics of immutable.Map and mutable.Map in Scala for
I wanted to ask is it possible to Show Directions in Map View (Bing)
I wanted to have a tail-recursive version of List.map , so I wrote my
I wanted to ask if anyone knows how to move map from one div
I wanted to get started using jMapping , but I cannot get a map
My webhost automatically forwards all requests to *.mydomain.com to the toplevel domain mydomain.com. I

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.