A Journey of images

Run local virtual hosts (xammp – apache – windows)

Posted by: gerritvisagie on: April 13, 2011

Tired of always using http://localhost/mysite ? want it to display mysite.com?

Well same here fellow Apache users.

Brows to your apache folder

>apache>conf>extra

Edit the httpd-vhosts.conf and add the following
(make sure to use the forward slash and not just copy and paste form the clipboard )

NameVirtualHost yourwebsite.com:80
<VirtualHost yourwebsite.com:80>
DocumentRoot C:/root/of/your/site
ServerName yourwebsite.com
</VirtualHost>

Make sure to also add your localhost to ensure your phpmyadmin and other extentions still work.

NameVirtualHost localhost:80
<VirtualHost localhost:80>
DocumentRoot C:/xampplite/htdocs
ServerName localhost.com
</VirtualHost>

Next up on your local drive go to:

C:\Windows\System32\drivers\etc

And edit the hosts file to look like this

127.0.0.1  localhost

127.0.0.1  yourwebsite.com

(Note do not define any real website addresses, this is your computers host setup file and will direct all references to the defined domain to the local machine)

Last and not least make sure your appache httpd.conf allows you to view files in the directory by adding

<Directory “C:/root/of/your/site/”>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

 

Note: Do not use any unsafe characters in folder names. If your apache does not start up after the changes, check the folder names for any spaces an spelling mistakes .

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Categories

RSS Video Production | AD-land Corporate Video

  • The Final Product
    AD-land does small amount copies of up to 1000 copies for our clients. Designing the cover for the DVD case and the DVD itself is also within our capabilities.
  • Staff Training Videos
    Ad-land delivers high quality training videos for staff induction, training and orientation
  • Editing your Corporate Video
    The real art of editing lies in the combination of music, visuals and voice in such a way that it will keep the audience interested and sell your company.
  • Sales Presentations
    The structure of a sales presentation will mostly depend on the need of the company and the needs of their clients.
  • The key points to marketing video
    AD-land produce marketing videos that bring your message to life captivating your audience with sound and visuals of your business, striving to bring you interactive videos that get the job done.
  • Interactive Multimedia
    We create interactive multimedia for businesses; Delivering a professional level of interactivity is set by the design and application of the presentation.
  • Better Multimedia Presentations
    We are in the business of building multimedia presentations for clients. We cannot provide the content, but we can transform a presentation into something that will captivate the audience.
  • Safety Induction Video
    Ad-Land has produced this Safety Induction Video for BT Steel South Africa for their NOSA grading. The safety video with a total duration of 15 minutes and is a prime example of a Safety Induction Video.
  • News and Updates | Ad-land Productions
    Ad-land Productions, Production news, website updates, latest videos and website updates.Johannesburg South Africa. 0117952876 mail@ad-land.co.za
  • Audio Video Marketing
    Reach people through audio video marketing, a new and innovative way to show people what your company can do for them