Nisankh Acharjya: Installing and Configuring A web server in Fedora 27/28

Install Apache httpd

Install httpd to configure Web Server.

sudo dnf -y install httpd

Remove the Default Test Page

sudo rm -f /etc/httpd/conf.d/welcome.conf

sudo vi /etc/httpd/conf/httpd.conf<br>

# line 86: change to admin's email address

ServerAdmin

root@<domain.tld>

# line 95: change to your server's name

ServerName domain.tld:80

# line 151: change

AllowOverride All

# line 164: add file name that it can access only with directory's name

DirectoryIndex index.html index.cgi index.php

# add follows to the end

# server's response header

ServerTokens Prod

# keepalive is ON

KeepAlive On<br>

sudo systemctl start httpd<br>

sudo systemctl enable httpd<br>

sudo firewall-cmd --add-service=http --permanent

sudo firewall-cmd --reload

Now your apache httpd Webserver is ready .. you can test by creating a html page and store the html at /var/www/html/


Source From: fedoraplanet.org.
Original article title: Nisankh Acharjya: Installing and Configuring A web server in Fedora 27/28.
This full article can be read at: Nisankh Acharjya: Installing and Configuring A web server in Fedora 27/28.

Advertisement


Random Article You May Like

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*