Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 372339

Summary: [sites] Self hosting on a different port number is hard
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ken_walker, simon_kaegi
Version: 0.4   
Target Milestone: 1.0 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2012-02-23 09:54:16 EST
1. Launch the server on another port (eg. 8081)
2. Create a new site configuration
3. Click "Convert to self-hosting".

What you end up with here is not going to work. The rules that it creates refer to the default port (8080) but you need 8081. 

Should investigate making the rules use the port number that the web page is running on, which is likely to be correct.
Comment 1 Mark Macdonald CLA 2012-09-17 19:09:16 EDT
(In reply to comment #0)
> Should investigate making the rules use the port number that the web page is
> running on, which is likely to be correct.

This trick works only when you're not running through a proxy, but on orion.eclipse.org (and OrionHub?) we always are. So I've just added a 'port' in the the convert-to-self-hosting dialog. It defaults to 8080.

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=583f922bd8f3c4ef2045acaa75eb8981b9fd26c0