Running Apache on SBS 2003 *without* breaking IIS
- From: "Jeffrey Sharkey" <Jeffrey.Sharkey@xxxxxxxxx>
- Date: 1 Aug 2006 10:29:21 -0700
Situation: You need to run an Apache server on the Internet, but also
provide the wizards (like ConnectComputer) inside the domain.
Problem: Installing an Apache web server breaks several wizards and
panels in Server Management. This happens because SBS relies on an
Internet Information Services (IIS) web server running on the server at
port 80. When Apache takes over port 80, it forces IIS out and breaks
many wizards and panels, usually by showing "404 Not Found" errors
instead.
Solution: Change the IIS port and force Apache to redirect internal
requests.
(1) Open Control Panel, Administrative Tools, Internet Information
Services (IIS) Manager. Expand Local Computer, Web Sites. Right-click
on Default Web Site and choose Properties. Change TCP port to 81.
Click OK. In toolbar, reboot the server by clicking Stop, and then
Start.
(2) Edit your Apache configuration file, usually in <C:\Program
Files\Apache Group\Apache2\conf\httpd.conf>. Add these lines to the
bottom, changing "yourcompany" and "myserver" for your network:
--START CODE--
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
ServerName www.yourcompany.com
ServerAlias yourcompany.com
</VirtualHost>
<VirtualHost *:80>
ServerName myserver
ServerAlias myserver.yourcompany.local localhost
Redirect / http://myserver:81/
</VirtualHost>
--END CODE--
Restart your Apache server by using Apache Monitor in the system tray,
or in Control Panel, Administrative Tools, Services.
(3) Add an entry to your HOSTS file to redirect IIS correctly. It's
usually in <C:\WINDOWS\system32\drivers\etc\hosts>. Add these lines to
the bottom, changing "myserver" for your network:
--START CODE--
127.0.0.1 myserver
--END CODE--
Future Work: This could be easily extended to COMPANYWEB by using
redirect rules similar to those above.
Keywords: Microsoft Windows Small Business Server SBS 2003, Apache,
Internet Information Services IIS, Web Server, Server Management,
Backup, Monitoring and Reporting, ConnectComputer, Connect Computer.
.
- Follow-Ups:
- Re: Running Apache on SBS 2003 *without* breaking IIS
- From: Cris Hanna \(SBS-MVP\)
- Re: Running Apache on SBS 2003 *without* breaking IIS
- Prev by Date: Re: Need to migrate to full Version from SBS
- Next by Date: Re: Basic CAL and SBS DC questions
- Previous by thread: Can anyone recommend a good folder/file access monitoring application for SBS?
- Next by thread: Re: Running Apache on SBS 2003 *without* breaking IIS
- Index(es):
Relevant Pages
|