apache多端口

touch /etc/apache2/sites-available/packages.conf

vim /etc/apache2/sites-available/packages.conf

Listen 81


ServerAdmin webmaster@localhost

DocumentRoot /mnt/ramdisk

    Options FollowSymLinks
    AllowOverride None


ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined

ln -s /etc/apache2/sites-available/packages.conf /etc/apache2/sites-enabled

vim /etc/apache2/apache2.conf

...


Options Indexes FollowSymLinks
AllowOverride None
Require all granted

...

service apache2 restart

你可能感兴趣的:(apache多端口)