Question
how to modify Apache to Allow URL Rewrites?
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 ?
1) my wordpress address is bulid on http://noxp.info/wp/
where is the ServerName ?
2) how to fill the file?Is the following format right?
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ServerName serverdomainnameorIP
<Directory /var/www/html/>
AllowOverride All
</Directory>
</VirtualHost *:80>
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
The file you are looking for may be
instead of
You can view what files are in the sites-available directory using the ls command: