Apache: Difference between revisions

From Alpine Linux
m (Categorized: Server)
(Formatting and adding links to related pages, homepage)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows.
== Simple Setup ==
== Simple Setup ==


* Add the apache2 package with {{Codeline|apk add apache2}}
Add the {{Pkg|apache2}} package:
* Start the service with {{Codeline|rc-service apache2 start}}
 
* Navigate a browser to the machine's address; there you should see the default "It works" page
{{Cmd|# apk add apache2}}
* Consider permanently enabling apache on startup with {{Codeline|rc-update add apache2}}
 
* Edit the configuration in {{Path|/etc/apache2/}}, then run {{Codeline|rc-service apache2 restart}} to enable your changes
Start the service:
* Consult the official documentation https://httpd.apache.org/docs/2.4/
 
{{Cmd|# rc-service apache2 start}}
 
Navigate a browser to the machine's address; there you should see the default "It works" page.
 
Enable apache on startup (if needed):
 
{{Cmd|# rc-update add apache2}}
 
Edit the configuration in {{Path|/etc/apache2/}} and run  
 
{{Cmd|# rc-service apache2 restart}}
 
to enable your changes
 
== Additional Guides ==
 
* [[Apache with php-fpm]]
* [[Apache authentication: NTLM Single Signon]]
 
== See Also ==
 
* [https://httpd.apache.org/ Apache Homepage]


[[Category:Server]]
[[Category:Web Server]]

Latest revision as of 16:33, 14 May 2023

The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows.

Simple Setup

Add the apache2 package:

# apk add apache2

Start the service:

# rc-service apache2 start

Navigate a browser to the machine's address; there you should see the default "It works" page.

Enable apache on startup (if needed):

# rc-update add apache2

Edit the configuration in /etc/apache2/ and run

# rc-service apache2 restart

to enable your changes

Additional Guides

See Also