Welcome Guest, Not a member yet? Register   Sign In
Change localhost:8080 to custom domain CI4
#4

If you set up Apache (for example WAMP www.wampserver.com) you can add virtual hosts. You can do this by adding a host name to the file hosts (in windows\system32\drivers\etc), for example:
Code:
127.0.0.1 mypCI4.local
Then add a virtual host in httpd-vhosts.conf :

Code:
<VirtualHost *:80>
ServerName mypCI4.local
ServerAlias www.mypCI4.local
DocumentRoot "d:/projects/mypCI4/public"
<Directory  "d:/projects/mypCI4/public">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
After restarting Apache you should be able to access your CI4 installation on www.mypCI4.local.
See https://noobietech.com/create-a-virtual-...p-windows/
You won't be able to use php spark serve this way, but you can setup multiple installations now.
Reply


Messages In This Thread
RE: Change localhost:8080 to custom domain CI4 - by JustJohnQ - 11-27-2022, 02:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB