My production domain looks like this:
My test domain looks like this:
Code:
testboard.domain.com
When executing the code above, it in fact returns testboard.domain.com correctly.
Options -> Basic Board Information -> Board Url
Code:
[url]http://testboard.domain.com[/url]
Options -> Basic Board Information -> Index page route
Options -> VaultWiki: SiteConfig -> Wiki Base URL
Code:
[url]http://testboard.domain.com[/url]
Options -> VaultWiki: SiteConfig -> Wiki CDN URL
I might add that this is under IIS10, not Apache or Nginx. Maybe that has something to do with it. Of course the values are entered without [URL]... dunno why this board adds this inside code tags.
I then added http://testboard.domain.com as the Wiki CDN URL but I still get the same 404 errors. I've got a hunch that this might have something to do with my mentioned data-url tags in pagetext_html of the vw_parsed table. Manually fixing the links in the DOM works flawlessly and displays the images (or rather: returns it in the browser when browsing directly).
A single img element looks like this:
Code:
<img src="http://board.domain.com/wiki-asset/?pid=74&d=1513018250&x=667" data-url="http://board.domain.com/wiki-asset/?pid=74&d=1513018250&x=667" class="bbImage" data-zoom-target="1" alt="" style="" />
This is rather interesting as my primary domain is on HTTPS, not on HTTP. So I don't know where these URLs come from otherwise (http instead of https and the wrong domain altogether).
I then went ahead and changed "Force Request Protocol" from "HTTP" to "Both" which yields the same HTML (img src and data-url is
http://), but the request itself goes to https://