WebFaction
Community site: login faq

I'm setting up a PHP website to run on WebFaction, and trying to give it a simpler URL before I roll it out. At present, the URL that works is of the form: http://website.myaccount.webfactional.com/folder1/folder2/, where:

  • website is the name of the app folder in the WebFaction file system at home/myaccount/webapps/website
  • myaccount is my account name
  • folder1/folder2/ is the path to where the website's index.php file resides

I want my users to be able to access this app with a url of the form: http://website.myaccount.org/, where myaccount.org is my main domain. This domain is already registered (via an external registrar), declared on WebFaction, and functioning on WF for referencing other websites.

My attempts to do this mostly get "Server not found" errors.

How to accomplish this on WebFaction?

~ Thanks in advance, Ken

PS ~ The names of the URL components above are of course fictional, but the structure of the URLs is exactly what I'm working with.

asked 01 Mar, 01:30

kenatsun
1929
accept rate: 20%


To use a subdomain on WF, you have to create a separate WF website for this, and type "website.myaccount.org" in the "Domains" field.

permanent link

answered 03 Mar, 18:53

kjodle
6716
accept rate: 28%

I got a solution that basically works from WebFaction support. It involves these steps:

  1. In WF control panel, create a new app, titled (let's say) "website_shortcut", of type "Symbolic link to static/cgi/php71". Set the "absolute path" for this app to /home/myaccount/website/folder1/folder2/.
  2. Set up the "website" website to use the "website_shortcut" app.
  3. With the registrar of the myaccount.org domain name (not WebFaction), set up the subdomain website.myaccount.org, and configure it to redirect to website.myaccount.webfactional.org.

~ Hope this helps

~ Ken

permanent link

answered 03 Mar, 21:58

kenatsun
1929
accept rate: 20%

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:

×75
×32

question asked: 01 Mar, 01:30

question was seen: 210 times

last updated: 03 Mar, 21:58

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM