Cara Setting Virtual Host di Ubuntu 22.04
Bertemu lagi dengan saya Een Pahlefi, kali ini saya akan mendokumentasikan cara configurasi virtualhost atau membuat sub sub folder, agar website kita lebih hirarki
Prepare sebelum eksekusi
apt install software-properties-common
add-apt-repository ppa:ondrej/php
apt update
apt install php8.0 libapache2-mod-php8.0
systemctl restart apache2
Configure Apache with PHP-FPM
apt install php8.0-fpm libapache2-mod-fcgid
a2enmod proxy_fcgi setenvif
a2enconf php8.0-fpm
systemctl restart apache2
apt install mtr
apt install traceroute
---------------------------------------------------------------------------------------------------
#mkdir /var/www/suneo.top
#chmod -R 755 /var/www/suneo.top
#nano /var/www/suneo.top/index.html
<html>
<head>
<title>Welcome to Suneo.top</title>
</head>
<body>
<h1>Success! The suneo.top virtual host is working!</h1>
</body>
</html>
#nano /etc/apache2/sites-available/suneo.top.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName suneo.top
ServerAlias www.suneo.top
DocumentRoot /var/www/suneo.top
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
#a2ensite suneo.top.conf
#a2dissite 000-default.conf
#apache2ctl configtest
#systemctl restart apache2
canlı sex hattı
ReplyDeleteheets
https://cfimi.com/
salt likit
salt likit
D0N8