pretty url in Ubuntu server

[font="Times New Roman"][size="3"]Why pretty url is not working when I use from another server?[/size][/font]

[font="Times New Roman"][size=2]What configs are need in Ubuntu server for working with pretty url?

[/size][/font]

[font="Times New Roman"][size="3"]

[/size][/font]

[font="Times New Roman"][size="3"]The below error is showed to me:[/size][/font]

[font="Times New Roman"][size="3"][color="#ff0000"]The requested URL /book/frontend/web/site/about was not found on this server.[/color][/size][/font]

Are you using Apache? If yes, check http://www.yiiframework.com/doc-2.0/guide-start-installation.html#recommended-apache-configuration