I want to Configure Pretty Permalinks for WordPress according to https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-14-04.
when to sudo nano /etc/apache2/sites-available/000-default.conf
1.There is no 000-default.conf in default? 2.how to fill it ?
<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html ServerName server_domain_name_or_IP <Directory /var/www/html/> AllowOverride All </Directory> </VirtualHost *:80>
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!
root@change:~# ls /etc/apache2/sites-available/ default default-ssl
root@change:~# cat /etc/apache2/sites-available/default <VirtualHost *:80> ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
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>
I have tested to change “AllowOverride None” into “AllowOverride All” in the file " /etc/apache2/sites-available/default" and set permalinks in wordpress setting to post name and input the command : sudo a2enmod rewrite sudo service apache2 restart
done!
There is the last problem remain here: What is the different betwwen them : /etc/apache2/sites-available/default and /etc/apache2/sites-available/default-ssl?
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.