wamp sets the local access path to a.com

  When we use wamp to build a local website, we often encounter that the page style cannot be loaded normally. This is because the css path is not loaded correctly. Then we use wamp to set the local access path to a.com pointing to a local virtual space. How to operate? ? Let's follow ytkah to set it up

  Open D:\wamp64\bin\apache\apache2.4.27\conf\extra\httpd-vhosts.conf. The local Apache path should be determined according to your specific installation path.

<VirtualHost *:80>
	ServerName www.a.com
	DocumentRoot "${INSTALL_DIR}/www/ytkah/"
	<Directory  "${INSTALL_DIR}/www/ytkah/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>

  Add the above configuration code, ytkah is the site directory, restart Apache, and refresh the site to see if the page is displayed normally?

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325031956&siteId=291194637