Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

So before I started putting websites on my VPS, I could access the IP directly and it would access the html folder in the /var/www/ area. But ever since I placed websites on the VPS, I can no longer access that HTML folder, it goes to the first domain I have listed on the httpd.conf file.

Is there a way I can make the IP its self look like a website in the httpd conf file? I tried to construct it like the other websites but httpd would stop working.

share|improve this question
    
HTML is one of the few protocols which sends the hostname along with the requests. So trying to get to webpage 1.2.3.4 is not the same as trying to view some.page.net. I can appear the same if the web server only has one domain. E.g. it might serve the first (and only) domain in that case. This is why you run into your problem. –  Hennes Nov 9 '13 at 2:51
    
@Hennes A better example of this is 198.252.206.16 vs superuser.com. All stack exchange sites (that I have checked) are hosted on 198.252.206.16 –  Scott Chamberlain Nov 9 '13 at 3:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.