• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
set the "document root" to the public folder inside your project

#14
This is the Virtual Host that I use on Windows 10 Pro using XAMPP and PHP 7.1.7.

PHP Code:
# Testing CI 4.0 Dev
<VirtualHost *:80>
 
   DocumentRoot "\xampp\htdocs\ci4\public_html"
 
   ServerName ci4.dev
    
<Directory "\xampp\htdocs\ci4\public_html">
 
       Order allow,deny
        Allow from all
        AllowOverride All
        Require all granted
    
</Directory>
</
VirtualHost

Also on Windows you may need to add the server name to the Windows host file.

c:\Windows\System32\drivers\etc\hosts

You can open it using notepad with administrator mode.

Example:

127.0.0.1 ci4.dev
or
::1 ci4.dev

This works fine for me and I use it all the time.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: set the &quot;document root&quot; to the public folder inside your project - by InsiteFX - 07-18-2017, 03:26 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.