{"id":1141,"date":"2020-11-02T09:53:29","date_gmt":"2020-11-02T09:53:29","guid":{"rendered":"https:\/\/linuxways.net\/?p=1141"},"modified":"2020-11-05T14:49:17","modified_gmt":"2020-11-05T14:49:17","slug":"how-to-configure-and-host-an-application-in-apache-web-server","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-configure-and-host-an-application-in-apache-web-server\/","title":{"rendered":"Configure and host an application in Apache web server in Linux"},"content":{"rendered":"<p>In our previous article, \u201c<a href=\"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-apache-web-server-on-linux\/\">How to install Apache web server on Linux<\/a>\u201d, we explained how to install Apache on a Linux machine. Now in this article, we will follow up with the basic configuration of Apache that will include<\/p>\n<ul>\n<li>Allow Apache Traffic through Firewall<\/li>\n<li>Managing Apache Services<\/li>\n<li>Setting Up Virtual Hosts in Apache<\/li>\n<li>Configure Apache to listen on a different port<\/li>\n<li>Allow\/Deny access from specific IP addresses<\/li>\n<\/ul>\n<h2>Prerequisites<\/h2>\n<ul>\n<li>Ubuntu 20.04 system<\/li>\n<li>User with sudo privileges<\/li>\n<li>An Apache web server installed<\/li>\n<\/ul>\n<p><strong>Note:<\/strong> The commands discussed in this article have been tested on <strong>Ubuntu 20.04 LTS<\/strong> <strong>(Focal Fossa).<\/strong> The same commands are also valid for Debian distribution.<\/p>\n<h2><a id=\"post-1141-_Allowing_Apache_Traffic\"><\/a>Allowing Apache Traffic through Firewall<\/h2>\n<p>If a firewall is enabled on your OS, you will have to allow Apache traffic through it. The Apache server by default listens on port 80 for HTTP and 443 for https. In order to allow HTTP (port 80) traffic through the firewall, execute the following command in Terminal:<\/p>\n<pre>$ sudo ufw allow 'Apache'<\/pre>\n<p>To allow HTTPS (port 443) traffic through the firewall, execute the following command in Terminal:<\/p>\n<pre>$ sudo ufw allow 'Apache Secure'<\/pre>\n<p>In order to allow both HTTP (port 80) and HTTPS (port 443) traffic through in the firewall, execute the following commands in Terminal:<\/p>\n<pre>$ sudo ufw allow 'Apache Full'<\/pre>\n<h2>Managing Apache Services<\/h2>\n<p>After installation, the Apache service automatically starts running in the background. To view the status of Apache service, issue the below command in Terminal:<\/p>\n<pre>$ systemctl status apache2<\/pre>\n<p>In the following output, <strong>active (running) <\/strong>status shows that the Apache service is active and running without any issues.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"850\" height=\"180\" class=\"wp-image-1142\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-30.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-30.png 850w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-30-300x64.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-30-768x163.png 768w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>For manually starting the Apache service, use the below command:<\/p>\n<pre>$ sudo systemctl start apache2<\/pre>\n<p>For enabling the Apache service to automatically start at startup\/boot, use the below command:<\/p>\n<pre>$ sudo systemctl enable apache2<\/pre>\n<p>For restarting the Apache service, use the below command:<\/p>\n<pre>$ sudo systemctl restart apache2<\/pre>\n<p>For stopping the Apache service, use the below command:<\/p>\n<pre>$ sudo systemctl stop apache2<\/pre>\n<h2>Setting Up Virtual Hosts in Apache<\/h2>\n<p>Virtual host in Apache allows you to run a number of websites from a single Apache Web Server. In the following section, we will configure one virtual host for our domain \u201ctest.org\u201d. For multiple domains, follow the same steps for each domain.<\/p>\n<h3>Step 1: Create a directory for your domain<\/h3>\n<p>The first step will be to create a directory for your domain. If you need to host multiple domains, create separate directories for every domain. For our domain <strong>test.org<\/strong>, we will create the directory with the following command:<\/p>\n<pre>$ sudo mkdir \/var\/www\/test.org<\/pre>\n<p>Make sure to replace <strong>test.org<\/strong> with your domain name.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"535\" height=\"64\" class=\"wp-image-1143\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-31.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-31.png 535w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-31-300x36.png 300w\" sizes=\"auto, (max-width: 535px) 100vw, 535px\" \/><\/p>\n<h3>Step 2: Set ownership and permissions<\/h3>\n<p>The directory for our domain is currently owned by the root user. In order to allow other users to modify the files, we will need to change the ownership of the directory. Use the following command in Terminal do so:<\/p>\n<pre>$ sudo chown -R $USER:$USER \/var\/www\/ test.org<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"46\" class=\"wp-image-1144\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-32.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-32.png 706w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-32-300x20.png 300w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/p>\n<p>Also, set required permissions on the domain directory. The 755 in the below command assigns read and execute permissions to everyone while the read, write and execute permissions to the owner of the file.<\/p>\n<pre>$ sudo chmod -R 755 \/var\/www\/ test.org<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"629\" height=\"41\" class=\"wp-image-1145\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-33.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-33.png 629w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-33-300x20.png 300w\" sizes=\"auto, (max-width: 629px) 100vw, 629px\" \/><\/p>\n<h3>Step 3: Create sample index.html page for your domain<\/h3>\n<p>Now create a sample <strong>index.html<\/strong> page for your domain to serve some content. Create a file <strong>index.html <\/strong>in the <strong>\/var\/www\/test.org<\/strong> directory.<\/p>\n<p>We are using the Nano editor for this purpose:<\/p>\n<pre>$ sudo nano \/var\/www\/test.org\/index.html<\/pre>\n<p>Add the following content in the file.<\/p>\n<pre>&lt;html&gt;\n\n&lt;head&gt;\n\n&lt;title&gt;Your test.org server block is up!&lt;\/title&gt;\n\n&lt;\/head&gt;\n\n&lt;body&gt;\n\n&lt;h1&gt;This is a test page for test.org website!&lt;\/h1&gt;\n\n&lt;\/body&gt;\n\n&lt;\/html&gt;<\/pre>\n<p>Once you are done with editing, save and close the <strong>index.html<\/strong> file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"646\" height=\"236\" class=\"wp-image-1146\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-34.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-34.png 646w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-34-300x110.png 300w\" sizes=\"auto, (max-width: 646px) 100vw, 646px\" \/><\/p>\n<p>Now the sample <strong>index.html<\/strong> page has been created for our site.<\/p>\n<h3>Step 4: Create a new virtual host file<\/h3>\n<p>In Apaches, there is a default virtual host file that contains configurations for the default web server. For our domain <strong>test.org<\/strong>, we will create a separate virtual host file.<\/p>\n<p>Issue the following command in Terminal to create the virtual host file for your domain:<\/p>\n<pre>$ sudo nano \/etc\/apache2\/sites-available\/test.org.conf<\/pre>\n<p>Add the below content in the file.<\/p>\n<pre>&lt;VirtualHost *:80&gt;<\/pre>\n<pre>ServerAdmin <a href=\"mailto:admin@test.org\">admin@test.org<\/a>\n\nServerName test.org\n\nServerAlias www.test.org\n\nDocumentRoot \/var\/www\/test.org\/html\n\nErrorLog ${APACHE_LOG_DIR}\/error.log\n\nCustomLog ${APACHE_LOG_DIR}\/access.log combined\n\n&lt;\/VirtualHost&gt;<\/pre>\n<p>Make sure to replace the <strong>test.org<\/strong> with your own domain name.<\/p>\n<h3><img loading=\"lazy\" decoding=\"async\" width=\"688\" height=\"237\" class=\"wp-image-1147\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-35.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-35.png 688w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-35-300x103.png 300w\" sizes=\"auto, (max-width: 688px) 100vw, 688px\" \/><\/h3>\n<p>Once you are done with editing, save and close the file.<\/p>\n<h3>Step 5: Enable virtual host file<\/h3>\n<p>Now we will enable the virtual host file that we have created in the previous step. Issue the below command in Terminal to do so:<\/p>\n<pre>$ sudo a2ensite test.org.conf<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"584\" height=\"114\" class=\"wp-image-1148\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-36.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-36.png 584w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-36-300x59.png 300w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/p>\n<p>We are not using the default virtual host file, so we can disable it. Use the following command to disable it:<\/p>\n<pre>$ sudo a2dissite 000-default.conf<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"111\" class=\"wp-image-1149\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-37.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-37.png 602w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-37-300x55.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>Now reload Apache configurations using the following command:<\/p>\n<pre>$ systemctl reload apache2<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"555\" height=\"67\" class=\"wp-image-1150\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-38.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-38.png 555w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-38-300x36.png 300w\" sizes=\"auto, (max-width: 555px) 100vw, 555px\" \/><\/p>\n<h3>Step 6: Configure hosts file (Optional)<\/h3>\n<p>If you do not have an actual domain name and only want to test the procedure using any test domain, you will need to add an entry for your domain in the <strong>\/etc\/hosts<\/strong> file.<\/p>\n<p>Edit the <strong>\/etc\/hosts<\/strong> file using the following command in Terminal:<\/p>\n<pre>$ sudo nano \/etc\/hosts<\/pre>\n<p>Add the following entry in this file replacing the <strong>server_IP<\/strong> and <strong>domain_name<\/strong> with the IP address and domain name of your environment.<\/p>\n<pre>server_IP domain_name<\/pre>\n<p>In our example, the entry would be:<\/p>\n<pre>192.168.72.157 test.org<\/pre>\n<p>Now save and close the \/etc\/hosts file.<\/p>\n<h3>Step 6: Test for errors<\/h3>\n<p>Now test Apache configurations for any errors. Use the following command to do so:<\/p>\n<pre>$ sudo apache2ctl configtest<\/pre>\n<p>If everything is okay, you will the <strong>Syntax OK<\/strong> message in the output. You may also see the following warning message in the test result.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"858\" height=\"153\" class=\"wp-image-1151\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-39.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-39.png 858w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-39-300x53.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-39-768x137.png 768w\" sizes=\"auto, (max-width: 858px) 100vw, 858px\" \/><\/p>\n<p>To suppress this message, add <strong>ServerName<\/strong> directive in the <strong>\/etc\/apache2\/apache2.conf<\/strong> file.<\/p>\n<p>Edit the <strong>\/etc\/apache2\/apache2.conf<\/strong> file using following command in Terminal:<\/p>\n<pre>$ sudo nano \/etc\/apache2\/apache2.conf<\/pre>\n<p>Add the following entry in the file replacing <strong>test.org <\/strong>with your domain name:<\/p>\n<pre>ServerName test.org<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"681\" height=\"318\" class=\"wp-image-1152\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-40.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-40.png 681w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-40-300x140.png 300w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/><\/p>\n<p>Save and close the file.<\/p>\n<p>Again, test Apache for configuration errors. Now you will see the warning has removed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"503\" height=\"90\" class=\"wp-image-1153\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-41.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-41.png 503w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-41-300x54.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-41-501x90.png 501w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/p>\n<h3>Step 7: Test if Apache is serving your domain name<\/h3>\n<p>Now, test the setup by navigating to the following address in the address bar of your web browser.<\/p>\n<pre>http:\/\/domain_name<\/pre>\n<p>In our example, it would be:<\/p>\n<pre>http:\/\/test.org<\/pre>\n<p>The following page indicates the virtual host has been successfully configured and Apache is serving our domain name.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"923\" height=\"358\" class=\"wp-image-1154\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-42.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-42.png 923w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-42-300x116.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-42-768x298.png 768w\" sizes=\"auto, (max-width: 923px) 100vw, 923px\" \/><\/p>\n<h2>Configure Apache to listen on different port<\/h2>\n<p>By default, Apache listens to web traffic on port 80. There are some cases when you may need to change the Apache port like when some other service is already listening on port 80, ISP has blocked port 80, or you want to prevent port 80 attacks. However, remember that after changing the default port, you must have to point the browsers to the new port like http:\/\/domain_name:port_nmuber.<\/p>\n<p>1. Edit the <strong>\/etc\/apache2\/ports.conf<\/strong> file using the below command:<\/p>\n<pre>$ sudo nano \/etc\/apache2\/ports.conf<\/pre>\n<p>This is the default view of the <strong>ports.conf<\/strong> file where you can see the port 80 configured as default port.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"317\" class=\"wp-image-1155\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-43.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-43.png 700w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-43-300x136.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>Change this port number to any other value you want the Apache server to listen to.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"717\" height=\"317\" class=\"wp-image-1156\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-44.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-44.png 717w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-44-300x133.png 300w\" sizes=\"auto, (max-width: 717px) 100vw, 717px\" \/><\/p>\n<p>Save and close the ports.conf file once you are done with the editing.<\/p>\n<p>2. Now, you will need to configure your virtual host to listen on the new port. To edit the virtual host file, use the following command in Terminal:<\/p>\n<pre>$ sudo nano \/etc\/apache2\/sites-avaialble\/test.org.conf file<\/pre>\n<p>In the above command, make sure to replace the <strong>test.org.conf<\/strong> with your virtual host file name.<\/p>\n<p>Find the entry <strong>&lt;VirtualHost *:80&gt;<\/strong> and change the value from <strong>80<\/strong> to any number you want the Apache to listen to. For instance, to change the port number to <strong>9090<\/strong>, the entry would be changed to <strong>&lt;VirtualHost *:9090&gt;.<\/strong><\/p>\n<p><strong>Note<\/strong>: To set a port number, choose a value with 1024 to 65535 range.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"708\" height=\"315\" class=\"wp-image-1157\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-45.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-45.png 708w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-45-300x133.png 300w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/p>\n<p>Once done, save and close the file.<\/p>\n<p>Apache can also be configured to listen on multiple ports. For instance, to set port 80 and 9090 as listening ports, add the following entries in the <strong>\/etc\/apache2\/ports.conf<\/strong> file:<\/p>\n<pre>Listen 80\n\nListen 9090\n\n<img loading=\"lazy\" decoding=\"async\" width=\"703\" height=\"315\" class=\"wp-image-1158\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-46.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-46.png 703w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-46-300x134.png 300w\" sizes=\"auto, (max-width: 703px) 100vw, 703px\" \/><\/pre>\n<p>Also in the <strong>\/etc\/apache2\/sites-avaialble\/test.org.conf<\/strong> file, add an entry in the following way:<\/p>\n<pre>&lt;VirtualHost *:80 *:9090&gt;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"704\" height=\"319\" class=\"wp-image-1159\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-47.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-47.png 704w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-47-300x136.png 300w\" sizes=\"auto, (max-width: 704px) 100vw, 704px\" \/><\/p>\n<p>Once you are done, restart the Apache service using the following command in Terminal:<\/p>\n<pre>$ sudo systemctl restart apache2<\/pre>\n<h2>Allow\/Deny access from specific IP addresses<\/h2>\n<p>In the following section, we will see how to allow\/deny specific IP addresses from accessing our site. We will use the .htaccess file for this purpose.<\/p>\n<h3>Step 1: Enable apache .htaccess<\/h3>\n<p>First, we will need to enable the .htaccess file. To do so, issue the following command in Terminal:<\/p>\n<pre>$ sudo nano \/etc\/apache2\/sites-available\/test.org.conf<\/pre>\n<p>After the VirtualHost block, append the following lines in the file:<\/p>\n<pre>&lt;Directory \/var\/www\/html\/example.com\/public_html&gt;\n\nOptions Indexes FollowSymLinks\n\nAllowOverride All\n\nRequire all granted\n\n&lt;\/Directory&gt;<\/pre>\n<p>Now save the file and restart apache using the following command:<\/p>\n<pre>$ sudo systemctl apache2 restart<\/pre>\n<h3>Step 2: Create .htaccess file<\/h3>\n<p>Now we will need to create .htaccess file. Navigate to the virtual host root directory.<\/p>\n<pre>$ cd \/var\/www\/test.org<\/pre>\n<p>Then create .htaccess file here using the following command:<\/p>\n<pre>$ sudo nano .htaccess<\/pre>\n<h3>Step 3: Allow\/Deny IP addresses<\/h3>\n<p>To <strong>deny<\/strong> certain IP addresses from accessing your website, you will need to add entries in the .htaccess file in the following way:<\/p>\n<pre>order deny, allow\n\n# To deny IP address 192.168.9.8\n\nallow from 192.168.9.8\n\n# To deny all IP addresses from 192.168.9.0 to 192.168.9.255\n\nallow from 192.168.9\n\nTo <strong>allow<\/strong> For this purpose, IP addresses from accessing your website, you will need to add entries in the .htaccess file in the following way:<\/pre>\n<pre>order deny, allow\n\n# To deny all IP addresses\n\nDeny from all\n\n# It will allow the IP address 192.168.9.30\n\nallow from 192.168.9.30\n\n# It will allow all IP addresses from 192.168.9.0 through 192.168.9.255<\/pre>\n<pre>allow from 192.168.9<\/pre>\n<p>That is all there is to it! In this article, you have learned the basics of Apache configurations on Linux. This includes firewall configuration, managing Apache services, setting up virtual hosts, changing default listening ports, and allowing\/denying specific IPs from accessing the sites. For more information about Apache configurations, visit Apache server official documentation at <a href=\"http:\/\/httpd.apache.org\/docs\/\">http:\/\/httpd.apache.org\/docs\/<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>In our previous article, \u201cHow to install Apache web server on Linux\u201d, we explained how to install Apache on a Linux machine. Now in this article, we will&hellip;<\/p>","protected":false},"author":4,"featured_media":1164,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2],"tags":[52,17],"class_list":["post-1141","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-ubuntu","tag-apache-web-server","tag-debian-10"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/1141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=1141"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/1141\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/1164"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=1141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=1141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=1141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}