In the previous two parts we installed Tomcat. Now lets set up Apache httpd server.
I suggest downloading Apache from Apache Lounge. The nice thing about Apache Lounge's builds is that they include mod_rewrite and mod_ssl.
The latest version at the time of this writing is 2.2.14. Download httpd-2.2.14-win32-x86-ssl.zip and open it in your favorite archiver (mine is WinRar).
I recommend taking the Apache2 folder inside the zip file and placing it on c:\. After you've done this you should have a c:\Apache2 folder with many files and subfolders in it.
Open c:\Apache2\conf\httpd.conf file in your favorite text editor. I recommend Textpad.
I usually change a few things from the defaults. Your configuration may differ.
Change
Uncomment the following modules:
2#LoadModule proxy_http_module modules/mod_proxy_http.so
3#LoadModule rewrite_module modules/mod_rewrite.so
Find the line that says
After closing directory tag lets add one allowing access to our web root. I usually set up a folder or a new drive for it. Lets say we set up a webroot of "c:\websites". Create a folder websites on c: and then inside it create another folder called railotest. We will use this to set up our test site.
After the closing tag, add a new one allowing access to our web root.
2 Options Indexes FollowSymLinks
3 AllowOverride None
4 Order allow,deny
5 Allow from all
6</Directory>
This will allow Apache to serve from anywhere inside c:\websites. Alternatively, you can set up a new directory entry for every site that you create, but I find that this makes things easier without significantly impacting security.
Find the line that says
and add index.cfm to that list
Uncomment the line that says
Now open up httpd-vhosts.conf file that is located in "C:\Apache2\conf\extra".
There are two sample virtual hosts defined. Lets comment them both out. Alternatively you can just delete them.
2 ServerAdmin webmaster@dummy-host.example.com
3 DocumentRoot "c:/Apache2/docs/dummy-host.example.com"
4 ServerName dummy-host.example.com
5 ServerAlias www.dummy-host.example.com
6 ErrorLog "logs/dummy-host.example.com-error.log"
7 CustomLog "logs/dummy-host.example.com-access.log" common
8</VirtualHost>
9
10<VirtualHost *:80>
11 ServerAdmin webmaster@dummy-host2.example.com
12 DocumentRoot "c:/Apache2/docs/dummy-host2.example.com"
13 ServerName dummy-host2.example.com
14 ErrorLog "logs/dummy-host2.example.com-error.log"
15 CustomLog "logs/dummy-host2.example.com-access.log" common
16</VirtualHost>
2# ServerAdmin webmaster@dummy-host.example.com
3# DocumentRoot "c:/Apache2/docs/dummy-host.example.com"
4# ServerName dummy-host.example.com
5# ServerAlias www.dummy-host.example.com
6# ErrorLog "logs/dummy-host.example.com-error.log"
7# CustomLog "logs/dummy-host.example.com-access.log" common
8#</VirtualHost>
9#
10#<VirtualHost *:80>
11# ServerAdmin webmaster@dummy-host2.example.com
12# DocumentRoot "c:/Apache2/docs/dummy-host2.example.com"
13# ServerName dummy-host2.example.com
14# ErrorLog "logs/dummy-host2.example.com-error.log"
15# CustomLog "logs/dummy-host2.example.com-access.log" common
16#</VirtualHost>
Now lets add a new entry for our test server
2 DocumentRoot "C:/websites/railotest"
3 ServerName railotest
4 ErrorLog "logs/railotest.com-error.log"
5 CustomLog "logs/railotest-access.log" common
6</VirtualHost>
Now save the files and lets try running apache and see if it worked. Open up command prompt (Start -> Run -> cmd.exe)
2(C) Copyright 1985-2003 Microsoft Corp.
3
4C:\Documents and Settings\Administrator>cd \apache2\bin
5
6C:\Apache2\bin>httpd
7httpd: Could not reliably determine the server's fully qualified domain name, using xxx.xxx.xxx.xxx for ServerName
Now we will need to define a host called railotest using windows hosts file. Open up "C:\windows\system32\drivers\etc\hosts" file in your favorite text editor.
After a bunch of comments, you should see
Lets add an entry for railotest
Now this computer knows that railotest points to 127.0.0.1.
Lets put a test cfm file in the webroot for railotest. Create a new file called index.cfm and put it in c:\websites\railotest.
Inside the file lets put some basic cf code
If you still have apache running and put in http://railotest in your browser you should see the code being output. It is not being interpreted yet because we have not hooked up Apache httpd to Railo. We will do this in Part IV.
For now lets set up apache to run as a service.
First stop the httpd that you ran earlier by entering ctrl-c and do the following.
2Installing the Apache2.2 service
3The Apache2.2 service is successfully installed.
4Testing httpd.conf....
5Errors reported here must be corrected before the service can be started.
6httpd: Could not reliably determine the server's fully qualified domain name, using xxx.xxx.xxx.xxx for ServerName
The Apache service is now installed. I recommend also adding the "Apache Monitor" app to your startup folder.
Click Start->All Programs and right click on Startup. Now click "Explore All Users". In another explorer window open up C:\Apache2\Bin and right drag ApacheMonitor.exe to the Startup folder. Let go of the right mouse button and select "Create shortcut here".
Double click on the shortcut and the monitor App should appear in your taskbar next to the clock and next to Tomcat's icon.
Double click it to open it and click start. Now you have a working Apache installation that will start as a service.
If you enter http://railotest in your browser, you should see the code we wrote earlier. This will persist across reboots.
In the next part, we'll hook it up to Railo and be able to actually execute this code.
#1 by Solstice Kron on 3/22/10 - 10:27 PM
#2 by sunrise on 3/25/10 - 8:13 AM
Sterling Silver Anklets
http://www.toboer.com/Sterling-Silver-Bangles" target="_blank">http://www.toboer.com/Sterling-Silver-Bangles
#3 by bounty bay online gold on 4/17/10 - 6:28 AM
<a href="http://www.bountybayonlinegolds.com/">boun... bay gold</a>
<a href="http://www.bountybayonlinegolds.com/">bbo gold</a>
<a href="http://www.bountybayonlinegolds.com/">boun... bay online silberlinge</a>
<a href="http://www.bountybayonlinegolds.com/">boun... bay online coin</a>
#4 by battery on 4/30/10 - 5:14 AM
<a href="http://www.u-battery.co.uk/battery.php/HP-Pavilion... Pavilion DV1000 battery </a>
<a href="http://www.u-battery.co.uk/battery.php/HP-Pavilion... Pavilion ZD7000 Battery</a>
<a href="http://www.u-battery.co.uk/battery.php/COMPAQ-Pres... Presario 2100 battery </a>
<a href="http://www.u-battery.co.uk/battery.php/COMPAQ-Pres... Presario r3000 Battery</a>
<a href="http://www.u-battery.co.uk/battery.php/IBM-ThinkPa... ThinkPad T40 battery </a>
#5 by linda on 5/5/10 - 6:13 AM
#6 by DBO Gold on 5/26/10 - 6:52 AM
#7 by christian louboutin on 6/3/10 - 7:13 AM
However, attitudes have changed, consumers are more educated and if they are prepared to pay a few thousand euros for a bespoke suit with hand-stitched buttonholes and a canvas interlining and purchase a crocodile <a href="http://www.echristianlouboutincom.com/christian-lo... Louboutin Pumps</b></a>, then they are not going to be satisfied with a cynical piece of battery-powered brand extension.
Gildo Zegna of the eponymous men's apparel brand, explains what prompted him to work on a watch with Gino Macaluso, proprietor of Girard <a href="http://www.echristianlouboutincom.com/christian-lo... Louboutin Sandals</b></a>.
#8 by tibetan baicao tea on 6/24/10 - 12:59 AM
#9 by Christian Louboutin on 6/25/10 - 5:45 AM
#10 by Christian Louboutin on 6/25/10 - 5:56 AM
#11 by Sterling silver belly rings on 7/9/10 - 4:04 AM
It is so nice.
very useful
Thank you very much
!!!
!!! thanks
#12 by hollister clothing on 7/19/10 - 2:30 PM
#13 by miu miu bags on 7/21/10 - 1:53 AM
Replica <a href="http://www.amazbag.com/">miu miu handbags</a> are not just beautiful and elegant, but it is also at excellent quality and similar design as the real. You will like it once you see it. Now attention please, at our shop, we are holding a promotion. You can buy replica <a href="http://www.amazbag.com/">miu miu bags</a> of high quality with the lowest price. Meanwhile, <a href="http://www.amazbag.com/">miu miu handbags</a> buying from here you can enjoy free and fast delivery shipping. Welcome to our shop!
#14 by r4cardsohot on 7/25/10 - 12:21 AM
http://www.r4cardsohot.com/
The <a href="http://www.r4cardsohot.com/"><strong>DS R4</strong></a> is the most popular version and the <a href="http://www.r4cardsohot.com/">R4 card,r4i card,m3i zero,nintendo ds r4 card,r4i dsi,r4 card for ds</a> has the capacity to store 2GB,4GB,8GB. This R4 card with amazing price and easy to use
#15 by marcus82 on 7/28/10 - 8:28 AM
Christian Louboutin <a href="http://christian-louboutin-cheap.com"> Christian Louboutin </a>
links of london <a href="http://www.linksoflondonbox.com"> links of london </a>
tiffany jewellery <a href="http://www.mytiffanylife.com"> tiffany jewellery </a>
ed hardy <a href="http://www.edhardyeshop.com"> ed hardy </a>
#16 by UGG Boots on 8/8/10 - 12:25 PM
#17 by UGG Boots on 8/8/10 - 12:31 PM
#18 by yiwu on 8/20/10 - 10:57 AM
,because here is the paradise;
If you hate somebody,pls also send him/her to [url=http://www.yiwuuniongroup.com]Yiwu[/url],because here is the hell.
[url=http://www.yiwuuniongroup.com]Yiwu Union Group[/url]: One Stop B2B China Wholesale and Export Agent In Yiwu City.
#19 by FUJITSU Laptop Battery on 8/23/10 - 11:56 PM
#20 by hollister clothing on 9/10/10 - 2:28 AM
#21 by hollister clothing on 9/10/10 - 4:06 AM
#22 by juicy couture on 1/5/11 - 10:23 PM
#23 by 59fifty hats on 5/26/11 - 7:46 AM
#24 by karryyu on 6/13/11 - 5:37 AM
#25 by Emal on 6/30/11 - 5:49 AM
#26 by www.sunglassesblack.net on 7/9/11 - 12:46 AM
http://www.sunglassesblack.net]sunglasses 2011
http://www.sunglassesblack.net]Oakleys Sunglasses
http://www.sunglassesblack.net]Oakleys Sunglasses Outlet
http://www.sunglassesblack.net]top sunglasses
#27 by www.mlb-2011.com on 7/9/11 - 12:46 AM
http://www.mlb-2011.com]mlb jerseys
http://www.mlb-2011.com]cheap mlb jerseys
http://www.mlb-2011.com]mlb shop
http://www.mlb-2011.com]mlb baseball
#28 by www.cheapest-belts.com on 7/9/11 - 12:47 AM
http://www.cheapest-belts.com]Cheap Belts Online
http://www.cheapest-belts.com]belts for women
http://www.cheapest-belts.com]work belts
http://www.cheapest-belts.com]buy belts
#29 by aprilhappy1122 on 11/8/11 - 11:19 PM
#30 by aprilhappy1122 on 11/8/11 - 11:19 PM
#31 by aprilhappy1122 on 11/8/11 - 11:19 PM
#32 by ken griffey shoes on 12/5/11 - 4:36 AM