A virtual host with Apache on Windows allows testing prior to release

Setting up a virtual host is a must; you need the ability to test products locally. Testing on a live website can quite often become time-consuming and confusing.  It is very easy to setup your computer to act as a virtual host or web server.  Even easier it is to allow your web server to act as a dedicated server for multiple websites.

What are advantages of setting up a virtual host:

  • build websites before publishing
  • match local and remote sever settings
  • test before going live

You should have an installation of PHP, MySQL and Apache running on your computer.  I use AppServ which installs and sets up everything for me.  Another option is XAMPP.  By default the root server is located at http://localhost.  Straight out of the box this is great for someone who is working on one website.  We want more. I have a virtual host for eight sites – three of which are live, others are for testing different setups.

Open Apache’s httpd.conf file.  Look for the section “Virtual host” which should be commented out.  I added the following code for my base installation of AppServ:

ServerAdmin myname@email.com
ServerName localhost.com
DocumentRoot "C:/AppServ/www/"

The DocumentRoot is my default for AppServ.  I set the ServerName to localhost.com.  Whenever I want to access AppServ I will use the URL http://localhost.com.  I chose this because in AppServ’s index file I have each virtual host/website linked here allowing quicker access.

For my personal blog I also set up a virtual host by entering the following below the following code:

ServerAdmin myemail@email.com
ServerName localhost.timtrice.com
DocumentRoot "C:/AppServ/www/timtrice/"

Notice the only changes I’ve made were my ServerName, which now is set up like a subdomain, and my DocumentRoot.  All of my Wordpress files that operate this website are in the DocumentRoot directory.

Next, instruct Windows to understand the URL’s are not internet websites, but intranet – our local computer.  Find the file named “hosts” (no extension) located at C:\Windows\System32\drivers\etc.  Open this file using Notepad.  You should see several lines commented out by the pound sign (#) and then something similar to below:

127.0.0.1       localhost

Append your new virtual host information.  For me, I just added the .com to localhost and then added my personal blog testing site, localhost.timtrice.com and assigned the same IP address.

127.0.0.1       localhost.com
127.0.0.1       localhost.timtrice.com

Save the file, close and restart Apache.  Type in either of the two URL’s into your browser to be taken to your virtual host homepage.  Even though my personal blog files are located in a subdirectory of AppServ, Apache treats those two directories as different websites.

Setting up a virtual host will make life so much easier.  It’s very easy to get lost trying to build multiple websites off one root website and you will inevitable come to problems.  Furthermore, matching a virtual host to a live website will help ensure updates go smoother without errors.

{ 1 comment }

Increase productivity, learning ability and memory by taking a nap

An article came across my Google Feed Reader that peaked my interest: Can a Mid-Day Nap Make You Smarter? A study showed those who took naps and experienced a longer period of stage 2 non-REM sleep were able to increase productivity better than those who hadn’t napped, regardless of the time spent napping.

Taking naps appears to be the equivalent of erasing a chalkboard, freeing your mind. Those who nap were able to increase their learning ability by 10%. Even better, the study demonstrates that your brain is better apt to solidify information learned just prior to nap-time. Taking naps also seems to improve the brains ability to learn after nap-time.

Typically, when we hear of ways to increase productivity, one of the first examples is a good night sleep – 8 hours (for me, it’s more like 6, but everyone is different). Having a good night sleep helps us start the day refreshed and feeling energized without the need for any of the million energy drinks available.  Taking naps is a restart, refreshing not only our bodies, but our minds to be ready for the second-half.

For many of us, however, it’s not feasible to take naps. Preach that “increased productivity” lecture to your boss all you desire, but many companies still see it as something taboo – they take more old-school approaches (hell, some companies only allow 30 minute lunches). We can’t all work at Google.  I did work for a company that had numerous offices set aside with plush couches specifically for periods of rest and napping, though I never took advantage. When I lived across the street from my office, I took naps religiously during lunch with no intentions of increased productivity; I just wanted a damn nap.

If you’re in that position, though, try to think of something; sit in your car or even take a cat-nap at your desk. It’s an idea.

(I honestly have no way to close this post. Guess I need a nap).

{ 0 comments }

Domain Name = Business Name = Social Name

February 26, 2010
Domain name, business name and social accounts should be identical

Assure your domain name can be registered as a business name in addition to availability on twitter, Facebook, LinkedIn, YouTube and other social networking sites.

Read the full article →

In this business, you either smoke or you get smoked

February 24, 2010
It's one thing to watch your results regularly; it's another to panic and make unnecessary adjustments.

Set rules in place to truly maximize the effectiveness of your AdWords campaigns. Therefore, instead of freaking out, you will allow yourself time to make accurate adjustments without hesitation.

Read the full article →

Words that Sell, Revised and Expanded Edition

February 24, 2010
Thumbnail image for Words that Sell, Revised and Expanded Edition

“Words that Sell, Revised and Expanded Edition” by Richard Bayan is a valuable resource that can not only expand the quality of your ad copy and landing pages but can also build your keyword lists with terms you didn’t see prior.

Read the full article →

One Way to Completely Jack Up Your Ad Campaigns

February 17, 2010

Prescription without diagnosis is malpractice
There are three types of people in this world.  There are those who set a series of events in motion then walk away allowing time for those events to work.  There are those who want to watch it work just to take notes – they never interfere.  Then, there are those [...]

Read the full article →

Will Social Media Replace Super Bowl Ad Budgets?

February 8, 2010

Pepsi will not air ads during this year’s Super Bowl. Instead, they have alloted $20 Million of they’re advertising budget towards social media. When you think about it, it seems like a no-brainer.
A great Super Bowl ad might air 3 times during the game. It will be shown again throughout the week on the news [...]

Read the full article →

Duplicating Success of Past Campaigns

February 7, 2010
Reviewing past successes can open eyes as far as improvements for the future.

I was stuggling in my AdWords campaign the other day after having some relatively good success.  Unfortunately, I had gone through editing so many freaking ads that I had forgotten what was working anymore.  So, I figured I better see if I can happen to look at some deleted ads.  I found this article that [...]

Read the full article →

MSN adCenter sums up my thoughts – exactly

February 6, 2010
MS adCenter provides very strange reasoning behind approving and disaproving advertisements

Microsoft adCenter has to be one of those “scratch your head” deals.  Maybe, it’s just me.  For some reason, I’ve never been able to get an ad or a keyword approved.  I’m not using the standard “pornography”, “drugs”, “weapons”, “assault”, “satanic”, “Nigerian Retirement Fund”, “Free Credit Report for $99/month” keywords.  Some samples would include “Want [...]

Read the full article →

“Ultimate Guide to Google Adwords” – More Like “Ultimate Guide to Buy More Ultimate Guides from Perry Marshall”

February 6, 2010
This is the crappiest attempt at sales that I have ever seen and it's a damn shame

If you’re getting into affiliate marketing you’re no doubt looking for a good book.  You’re wanting a book that explains the ins and outs of Google Adwords, how to write compelling ad copy, how to create well-crafted landing pages as well as how to do market research before you sink hundreds of dollars into a [...]

Read the full article →
On Facebook On Twitter On YouTube On LinkedIn Get my free RSS feed Contact me