Glam Prestige Journal

Bright entertainment trends with youth appeal.

I have one wm with ubuntu 18.04 and one network adapter set to NAT.

I have setup a virtualhost I created servidorweb.orange.sergitorres.com.conf in sites-avalaible and enabled using a2ensite.

Apache is running without problems.

<VirtualHost *:80> ServerAdmin ServerName servidorweb.orange.sergitorres.com DocumentRoot /var/www/html/ ErrorLog ${APACHE_LOG_DIR}/errorweb.log CustomLog ${APACHE_LOG_DIR}/accesweb.log combined
</VirtualHost>

Also setup /etc/hosts:

127.0.0.1 servidorweb.orange.sergitorres.com

But when i type in Browser (Firefox):

127.0.0.1 -> it works -> shows default apache index.html

localhost -> it works showing default apache index.html

but when i type

servidorweb.orange.sergitorres.com, it goes to a site called , outside in internet.

If i anlayse the http request it says: Error 301 moved permanently Seems that header request is good with servidorweb.orange.sergitorres.com but response header comes from .

i want to teach virtualhosts, and dont know why it goes outside internet ( is an internet address not a local or virtual host).

Any help would be apreciated

pd: also changed the name of hostname to servidorweb.orange.sergitorres.com

2 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy