Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm building my own custom content management system for a my websites. I want the content management-site to be available through another port so I can do this: www.mysite.com:8844. The server I use has Plesk 10 installed on it.

To get this to work I have done the following steps:

  1. in the file /etc/httpd/conf/httpd.conf add the text Listen 8844

  2. Edit the file /usr/local/psa/admin/conf/templates/custom/domain/domainVirtualHost.php to include a virtual host with 8844 as port number.

  3. Rebuild configuration files by running the following command in the terminal (putty):

    /usr/local/psa/admin/bin/httpdmng --reconfigure-all

I would expect that if I do this that I would get to see the same site as on port 80 as on port 8844.

But a strange thing happens. If I go to www.mysite1.com:8844 I will get to see the same site as on www.mysite1.com. But if I go to www.mysite2:8844 it will show me the content of www.mysite1.com.

Does anyone know where I went wrong, or did I just forget something?

share|improve this question
1  
I would recommend to check actual Apache config produced as a result of steps #2 and #3. Also be sure you have disabled Nginx proxy (or configured it to cover 8844 as well). – Sergey L Oct 1 '12 at 6:22
I have checked the generated Apache Config files they seem to be correct. I do not have Nginx proxy installed. When I do the phpinfo() command in the php file of the site loaded. I can see that its loading the wrong apache configuration file. – redn0x Oct 2 '12 at 20:17

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

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.