WebFaction
Community site: login faq

I am running WebDAV on a subdomain, in its own directory (not under the domain's webroot), in shared hosting, protected with HTTP basic authentication via a .htpasswd file in the top directory. My goal now is to replace the shared TLS certificate with a cert from Let's Encrypt. For this I need to give the issuer access to a subdirectory under /home/mywebfactionusername/webdavdir/.well-known/ (the .htpsasswd file is in /home/mywebfactionusername/webdavdir/ ). I know how I would do this in a nginx.conf file, but I'm not sure how to proceed in the Webfaction environment. Is this possible to do, and how?

Thanks!

asked 27 Jun, 01:08

chryss's gravatar image

chryss
1
accept rate: 0%


First, create a "symbolic link to static-only" application in our control panel, using /home/mywebfactionusername/webdavdir/.well-known as the symlink path (in the "extra info" field).

Then, again in the control panel, add that symlink app to your site using /.well-known as the URL path.

The end result will be that the symlink is served directly from our front-end Nginx, thus bypassing Apache, so your .htaccess and related config won't be processed.

Hope that helps!

permanent link

answered 27 Jun, 16:14

seanf's gravatar image

seanf ♦♦
11.9k21333
accept rate: 37%

edited 27 Jun, 16:14

Thank you! This sounds very logical and straightforward, and I see why it should work. But I'm stuck somewhere at the end. I created the redicrect app ("symbolic link to static-only") under applications, and then added it to the web site. Which now has two applications. It says:

/served by [my webdav app] - [my web server] /.well-known served by [my symlink app] - [my web server]

But if I go to https://my_root_URL, I get the "site not configured" message, when I'd expect to be asked for username and password for http auth_basic. Anything i'm doing wrong?

(27 Jun, 23:20) chryss chryss's gravatar image

Please open a support ticket and we'll look into it.

(27 Jun, 23:41) seanf ♦♦ seanf's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×183
×19
×15
×2

question asked: 27 Jun, 01:08

question was seen: 346 times

last updated: 28 Jun, 00:03

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2017 PARAGON INTERNET GROUP LIMITED
WEBFACTION IS A SERVICE OF PARAGON INTERNET GROUP LIMITED
REGISTERED IN ENGLAND AND WALES 7573953 - VAT REGISTRATION NUMBER 182147021
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM