Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: access to site by domain and not by ip |
|
Author |
|
oscaroxy
Joined: 29 Aug 2016 Posts: 2
|
Posted: Mon 29 Aug '16 12:04 Post subject: access to site by domain and not by ip |
|
|
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
|
Posted: Mon 29 Aug '16 12:11 Post subject: |
|
|
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
|
Posted: Mon 29 Aug '16 12:36 Post subject: |
|
|
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 |
|
|
|
|
|
|