The error massage that I get when I try to restart apache
AH00526: Syntax error on line 20 of /etc/apache2/sites-enabled/zzz-deny-generic.conf: Invalid ServerName “*” use ServerAlias to set multiple server names. Action ‘configtest’ failed. The Apache error log may have more information.
What shoul I do?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
i have the similar trouble. AH00256: Syntax error on line 43 of /etc/httpd/conf.d/phpMyAdmin.conf: Invalid command ‘Order’, perhaps misspelled or defined by a module not incluided in the server configuration
This comment has been deleted
# zzz-deny-generic
#
# (c) Chris Stephenson 2014
#
# Licensed under GNU Public License v3 or later
#
# No warranty explicit or implied that this script is fit for purpose or even that it will not harm your computer
#
# This is the belt to default’s braces
# It tries to explicitly match any stray virtual host requests and deny them
# Not foolproof and needs to be done again for each ip on the server
# I couldn’t find a better way.
# Insert the correct IP in the VirtualHost line. If there is more than one IP on the server, repeat the
# whole VirtualHost block with that IP at the beginning.
#
#
<VirtualHost _IP_:80>
# match just about anything
ServerName *
ServerAlias *.*
ServerAlias *.*.*
ServerAlias *.*.*.*
ServerAlias *.*.*.*.*
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
# ban any access
<Directory />
AllowOverride None
Order allow,deny
deny 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>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.