I am really getting lost with the new version of WampServer. I read the documentation but there is still something that I do not understand.
First of all when I open localhost I get the message at the bottom
It's a bad idea to add localhost in the url of launching projects. It is best to define VirtualHost in
wamp/bin/apache/apache2.4.37/conf/extra/httpd-vhosts.conf
file and not add localhost in the url.
I created VirtualHost for each project but I cannot find which option should I enable or disable to avoid that message.
Second, I created the following VirtualHost
<VirtualHost *:80>
ServerName portfolio
ServerAlias portfolio
DocumentRoot "${INSTALL_DIR}/www/portfolio"
<Directory "${INSTALL_DIR}/www/portfolio/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
but when I open portfolio/ (a wordpress site) I get that all images are like
http ://portfolio/portfolio/wp-content/gallery/glamour/thumbs/thumbs_image.jpg
rather than
http ://portfolio/wp-content/gallery/glamour/thumbs/thumbs_image.jpg
and all links are like
http ://portfolio/localhost/portfolio/page/example/
rather than
http ://portfolio/page/example/
Any idea of what I did wrong?
PS the space after http is used here to avoid that this editor convert the string to a link.
First of all when I open localhost I get the message at the bottom
It's a bad idea to add localhost in the url of launching projects. It is best to define VirtualHost in
wamp/bin/apache/apache2.4.37/conf/extra/httpd-vhosts.conf
file and not add localhost in the url.
I created VirtualHost for each project but I cannot find which option should I enable or disable to avoid that message.
Second, I created the following VirtualHost
<VirtualHost *:80>
ServerName portfolio
ServerAlias portfolio
DocumentRoot "${INSTALL_DIR}/www/portfolio"
<Directory "${INSTALL_DIR}/www/portfolio/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
but when I open portfolio/ (a wordpress site) I get that all images are like
http ://portfolio/portfolio/wp-content/gallery/glamour/thumbs/thumbs_image.jpg
rather than
http ://portfolio/wp-content/gallery/glamour/thumbs/thumbs_image.jpg
and all links are like
http ://portfolio/localhost/portfolio/page/example/
rather than
http ://portfolio/page/example/
Any idea of what I did wrong?
PS the space after http is used here to avoid that this editor convert the string to a link.