mauzer
10/16/2023, 12:33 PMsknowlton
10/16/2023, 12:47 PMmauzer
10/16/2023, 12:48 PMAnders Lars
10/16/2023, 12:48 PMsknowlton
10/16/2023, 12:49 PMsknowlton
10/16/2023, 12:49 PMmauzer
10/16/2023, 12:49 PMAnders Lars
10/16/2023, 12:55 PM<rule>
<name>Move Homedirs to Different Webserver</name>
<from>^/~(.+)</from>
<to type="redirect" last="true"><http://newserver/~$1></to>
</rule>mauzer
10/16/2023, 12:59 PMsknowlton
10/16/2023, 1:00 PMmauzer
10/16/2023, 1:01 PMEvil Ware
10/16/2023, 2:01 PMEvil Ware
10/16/2023, 2:06 PMmauzer
10/16/2023, 3:57 PMAnders Lars
10/16/2023, 4:18 PMEvil Ware
10/16/2023, 4:26 PMbdw429s
10/16/2023, 5:25 PMbdw429s
10/16/2023, 5:26 PMbdw429s
10/16/2023, 5:32 PMcommandbox-hostipdater module will keep your hosts file fixed up)
⢠Pointing the web root at the folder of code that's the web root
I don't understand why you'd start a local server on the wrong port, hostname, and folder and then try to patch it over with rewritesbdw429s
10/16/2023, 5:34 PMcd /path/to/Myproject/Lucee/realitme/currentbuild
install commandbox-hostupdater
start port=80 host=<http://mydevmachine.homeproject.com|mydevmachine.homeproject.com>
while running as administrator (to allow the hosts file to be edited on the fly) and you should be good to go.bdw429s
10/16/2023, 5:35 PMSSLPort=443 to the start command and you'll get a self-signed cert you can tell your browser to ignore.bdw429s
10/16/2023, 5:39 PM{
"web": {
"rules": [
"equals-nocase( %{LOCAL_SERVER_NAME}, '<http://mydevmachine.homeproject.com|mydevmachine.homeproject.com>' ) -> rewrite( '/Myproject/Lucee/Fusebox/realtime/currentbuild/%{RELATIVE_PATH}' )"
]
}
}
https://commandbox.ortusbooks.com/embedded-server/configuring-your-server/server-rules/rule-examplesbdw429s
10/16/2023, 5:41 PMmauzer
10/16/2023, 8:21 PMmauzer
10/16/2023, 8:54 PMbdw429s
10/16/2023, 8:58 PMbdw429s
10/16/2023, 8:59 PMmauzer
10/17/2023, 7:52 AMbdw429s
10/17/2023, 10:30 PMmauzer
10/18/2023, 9:27 AM