You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apache will continue running until you press Ctrl-C to terminate it.
If you open http://localhost in your browser, you should see a page saying that “It works!”.
The document root directory
Scoop configures Apache to serve web pages from the htdocs directory inside the Scoop install directory.
You can get to this directory by running:
pushd "$(scoop which httpd | split-path)\..\htdocs"
If you would like to serve documents from somewhere else, you need to change the DocumentRoot inside the conf/httpd.conf file. You can find httpd.conf at
"$(scoop which httpd | split-path)\..\conf\httpd.conf"
Installing Apache as a service
Run:
sudo httpd -k install -n apache
sudo net start apache
If you don't have sudo, you can install it with scoop install sudo.
To uninstall the Apache service
sudo net stop apache
sudo httpd -k uninstall -n apache