Professional Documents
Culture Documents
Setup Virtual Host
Setup Virtual Host
Setup Virtual Host
http://codeigniter3.co/welcome/credit_card/2
1. The first segment represents the controller class that should be invoked.
2. The second segment represents the class function, or method, that should be
called.
3. The third, and any additional segments, represent the ID and any variables that
will be passed to the controller.
Step 1 :
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "C:/xampp/htdocs/codeigniter3"
ServerName codeigniter3.co
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>
Step 2 :
127.0.0.1 codeigniter3.co
After adding above 2 steps, restart apache to access your site using
codeigniter3.co in your browser