Cygwin Apache2

Cygwin Apache2

  1. Install Apache2via usual setup-x86_64.exe
  2. As administrator cd to /cygdrive/c/cygwin64/etc/apache2
  3. Edit file httpd.conf

Important directories

HTDOCS APACHE2
/cygdrive/c/cygwin64/srv/www/htdocs /cygdrive/c/cygwin64/etc/apache2

File httpd.conf:

$ grep Listen h*.conf
# Listen: Allows you to bind Apache to specific IP addresses and/or
# Change this to Listen on specific IP addresses as shown below to
#Listen 12.34.56.78:80
## Listen 80
Listen 8080

So now http://localhost:8080/index.html
should render the file in
c:/cygwin64/srv/www/htdocs/index.html

Checking vhosts

/usr/sbin/apachectl2 -S
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License