Click to search Andy Jarrett.co.uk RSS feed

Loading Twitter

apache, with virtualhosts on multiple ports

Here mainly because i forget this. If you want to set up a new VirtualHost ,on your Apache Server,on new port i.e. 81 just add this to your HTTPD.conf file

<VirtualHost 127.0.0.1:81>
   ServerAdmin temp@temp.com
   DocumentRoot "c:/wwwroot/"
   ServerName www.newsiteport81.com
</VirtualHost>

but before you restart the services don't forget to make Apache Listen on that port as well by adding the following under "LISTEN 80"

# ADD PORT 81
Listen 81

Without this Apache will not be listening on PORT 81, and you'll be sitting in front of your box wondering what you've missed - you'll realise - then you'll blog about it ;o)

Comments Comments (0) | Print Print | Send Send | 4566 Views

CFMX 7, Apache 2 and DWMX Extensions

Still not posting much at the minute due to work. But i did get around to sticking CFMX 7 on my new Laptop. All went well - couldnt get the Admin page up but a simple restart of Apache and all went well.

Also you can download the CFMX 7 extensions for DWMX at Macromedia

Comments Comments (0) | Print Print | Send Send | 2037 Views

CFMX on IIS and Apache2 on the same machine

Well with a new machine in the works for my company i've been thinking about running Apahce (on windows) for our server. Anyway what with mappings etc i really wanted to give this a bash at home first. At first i thought this was gonna mean me, notepad and a bunch of text files had to get friendly. Actually its couldn't of been easier thanks to CF.

  • Download and install Apache. I needed to change the port to 81 so it didnt interfere with IIS which meant i changed the "Listen" port to 81 in the httpd.conf file
  • Edit C:\CFusionMX\bin\connectors\Apache_connector.bat to look at "apache2" folder instead of "Apache". Then run the bat file.
  • Restart Apache and all is well, easy.

Do remember though that they are using the same CF engine. If you have the enterprise version you could most likely set up a different instance for each web server, but i dont so i can't ;o(

Afterthought:If you want to administer CF from Apache then you will need to add the following to the ScriptAlias section of httpd.cong
Alias /CFIDE "%cfroot%/CFIDE/"
Alias /cfide "%cfroot%/CFIDE/"

Replacing "%cfroot%" for the director path to CFIDE folder i.e. c:/coldfusionmx/wwroot/

Comments Comments (0) | Print Print | Send Send | 2397 Views

Previous Entries

BlogCFC by Raymond Camden + Twitter @AndyJ + ColdFusion jobs + Contact Me + Snippets/Downloads + RSS .