Check your diagnostics page:
DOCUMENT_ROOT vs SCRIPT_FILENAME
Your DOCUMENT_ROOT basically says that
/var/services/web is the physical ROOT of your website (which is correct), yet the SCRIPT_FILENAME includes a directory segment
/norai/, which is probably ALSO correct, but there must be using some REWRITE rule (apache or htaccess) bypassing this directory in the URL (of course, because /norai/ is not included as a path in the URL norai.net/gallery/).
X3 uses relative file paths to calculate the URL for your pages, but it can't GUESS that you have some rewrite rule somewhere else.
This is not really a correct setup, but you can try this: Go to Panel > Settings > Advanced > Force URL, and write "
http://norai.net/gallery".