Answer the question
In order to leave comments, you need to log in
How to set default Apache2 virtual host?
I have a lot of sites on the server, when you enter the server ip, it shows the first site in the list in alphabetical order (\etc\apache2\sites-available).
How to specify a specific domain?
Answer the question
In order to leave comments, you need to log in
<VirtualHost _default_:80>
ServerAdmin [email protected]
DocumentRoot /var/www/default/web/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/default/web>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question