logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: access to site by domain and not by ip
Author
oscaroxy



Joined: 29 Aug 2016
Posts: 2

PostPosted: Mon 29 Aug '16 12:04    Post subject: access to site by domain and not by ip Reply with quote

I would to access to site by domain and not by ip.
My configure in httpd.conf is:

<VirtualHost 192.168.1.44:80>
ServerName XXX.net
ServerAlias www.XXX.net

DocumentRoot /var/www/html/XXX
DirectoryIndex index.php
ErrorLog /var/log/httpd/error_log_XXX
CustomLog /var/log/httpd/access_log_XXX common
<Directory "/var/www/html/XXX/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>


I would to access by www.XXX.net but not by 192.168.1.44.
thanks
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 29 Aug '16 12:11    Post subject: Reply with quote

How do you set the DNS to your IP? Own DNS server or hosts file?
Back to top
oscaroxy



Joined: 29 Aug 2016
Posts: 2

PostPosted: Mon 29 Aug '16 12:36    Post subject: Reply with quote

isn't problem the DNS, I access by domain to site, I wouldn't access to site by ip.... if possible without set DNS.

I seen other site where I ping the domain and obtain the ip, if I write the domain then I access to site, if I write the ip then I don't access to site.

thanks
Back to top


Reply to topic   Topic: access to site by domain and not by ip View previous topic :: View next topic
Post new topic   Forum Index -> Apache