Laravel Classroom image

Prashant  Nigam / Student / Web Technology

 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|1 | 2 | 3 | 4|Last
Lessons:-Getting Started

1.1 Method 1 Create a new VirtualHost
We will need to create a new Apache configuration file. On most standard installations creating
a myproject.conf file in the Apache conf.d directory will include it by default, please see the
documentation for your current set-up for more information.
Inside our new configuration file, paste or type the following VirtualHost declaration:
1 <VirtualHost 127.0.0.2>
2 DocumentRoot "/path/to/laravel/project/public"
3 ServerName myproject
¹http://laravel.com
²https://twitter.com/#!/taylorotwell
³http://laravel.com
1
Getting Started 2
4 <Directory "/path/to/laravel/project/public">
5 Options Indexes FollowSymLinks MultiViews
6 AllowOverride all
7 </Directory>
8 </VirtualHost>
We must update the IP address to one which is not currently in use. (Best not to use 127.0.0.1,
this is your loop-back address, and you may have something else using it.) Change the two paths
to point to your Laravel source package’s public directory. Now restart your web server.
Next we will create a new local DNS entry to point a project name to your VirtualHost. First
open the hosts file normally found at c:\windows\system32\drivers\etc\hosts on a Windows
machine or /etc/hosts on unix-based operating systems.
Add the following line using the IP address and server name you used in your VirtualHost
declaration:
1 127.0.0.2 myproject
You should now be able to navigate to http://myproject with your web browser to see the
Laravel welcome page.

 
 
 

Prashant  Nigam

Skills    Laravel

Qualifications :-
Location :-,,,
Description:-
Explore
 

  Students (0)