Universeorange.com/Docs/
To add a domain (webpage)
<name>configure domain add<domain>
<name>configure host add<domain>
Where<name>is the named binary which is introduced in the installation section.
Where<domain>is a domain i.e.example.com.
To add a domain with subdomain:<name> configure domain add subdomain.example.com.When you want to do this manually:
- Create directory:
project_dir/Host/<subdomain>/<domain>/<extension>/
- Where
<subdomain>maybe skipped so:project_dir/Host/<domain>/<extension>/- Create symlink in:
project_dir/Host/<domain>/ln -s <extension> Local- Create file:
project_dir/Host/<domain>/<extension>/Data/Route.json- Add this route resource to
project_dir/Data/Route.json- Create file:
project_dir/Host/<domain>/<extension>/Controller/<controller>.php- Create file:
project_dir/Host/<domain>/<extension>/View/<template>.tpl- All done. test the route defined in 3.
When working on windows with wsl (Windows Subsystem Linux) you need to adjust the windows
hostfile located atC:\Windows\System32\drivers\etc\hosts.
If you use wsl version 1 you need to add:127.0.0.1 <domain>.
If you use wsl version 2, first check yourip addressin theDebianorUbuntushell withip addressand add that one to the Windowshostfile.
For example:user@PC:~$ip address 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 6a:c3:20:09:8a:07 brd ff:ff:ff:ff:ff:ff 3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 72:ac:a8:7a:da:40 brd ff:ff:ff:ff:ff:ff 4: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000 link/sit 0.0.0.0 brd 0.0.0.0 5: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 00:15:5d:f2:e5:58 brd ff:ff:ff:ff:ff:ff inet 172.29.37.168/20 brd 172.29.47.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::215:5dff:fef2:e558/64 scope link valid_lft forever preferred_lft foreverYou need to copy the inet address of eth0, in this example:
172.29.37.168and add it to the windowshostfile located at:C:\Windows\System32\drivers\etc\hosts.
You need to add172.29.37.168 <domain>to the host file.
Last modified: 2021-06-06
© 2021 universeorange.com