Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2006
    Posts
    56

    Run a script on VPS accessible to all hosted sites

    Hi

    I want to run a script on a the VPS and want this script to be accessible to all sites hosted on the server. so anyone can access the script using

    site1.tld:XXX
    site2.tld:XXX
    and
    IP:XXX

    where XXX is any port.

    Any idea how I can achieve this?

  2. #2
    Most likely some custom scripts will be needed.

    You would probably be best off asking this at http://www.webhostingtalk.com/forumdisplay.php?f=138

  3. #3
    Join Date
    Sep 2006
    Location
    The Not So Deep South
    Posts
    929
    Have your webserver configured to bind to the IPort and do not configure any virtual domains, that should be about all their is to it.
    Hostigation.com - High Resource Hosting
    WHM/cPanel Servers for Hosting and Dedicated Needs
    SolusVM VPS Hosting - Big Features, Small Prices
    Like us on Facebook or follow @hostigation on Twitter

  4. #4
    Join Date
    Sep 2006
    Posts
    56
    Quote Originally Posted by mitgib View Post
    Have your webserver configured to bind to the IPort and do not configure any virtual domains, that should be about all their is to it.
    yes I can configure ip : port, but I need virtual domains feature as well.

    like I can run cpanel for any domain by
    site.tld:2082

  5. #5
    Join Date
    Sep 2006
    Location
    The Not So Deep South
    Posts
    929
    I guess you could make one big virtual domain just for the script and park every domain on the server to that custom port.
    Hostigation.com - High Resource Hosting
    WHM/cPanel Servers for Hosting and Dedicated Needs
    SolusVM VPS Hosting - Big Features, Small Prices
    Like us on Facebook or follow @hostigation on Twitter

  6. #6
    Join Date
    Apr 2010
    Location
    North Carolina
    Posts
    430
    Apache:
    Code:
    listen 0.0.0.0:80
    listen 0.0.0.0:8080
    namevirtualhost 0.0.0.0:80
    <VirtualHost 0.0.0.0:8080>
    ServerName 0.0.0.0
    DocumentRoot /var/www/port-8080
    <Directory "/var/www/port-8080">
    allow from all
    Options +Indexes
    </Directory>
    </VirtualHost>
    <VirtualHost 0.0.0.0:80>
    DocumentRoot /var/www/example.net
    ServerName example.net
    <Directory /var/www/example.net>
    allow from all
    Options +Indexes
    </Directory>
    </VirtualHost>
    <VirtualHost 0.0.0.0:80>
    DocumentRoot /var/www/example.com
    ServerName example.com
    <Directory /var/www/example.com>
    allow from all
    Options +Indexes
    </Directory>
    </VirtualHost>
    Nginx:
    Code:
      server {
        listen 80;
        server_name example.com www.example.com;
        root /var/www/example.com;
    index index.html
      }
     server {
        listen 80;
        server_name example.net www.example.net;
        root /var/www/example.net;
    index index.html
      }
     server {
        listen 8080 default;
        server_name _;
        root /var/www/port-8080;
    index index.html
      }

  7. #7
    Possible problem: end user is behind firewall and cannot access custom port.
    PremiumReseller.com Hyper-V SSD VPS USA London Singapore
    Reseller Hosting Cpanel PURE SSD CloudLinux Softaculous
    Windows Reseller Asp.NET 4.5 MSSQL 2012 SmarterMail Enterprise

Similar Threads

  1. How many sites can i run on this VPS
    By BeepMK in forum VPS Hosting
    Replies: 20
    Last Post: 10-27-2009, 08:10 AM
  2. what is the script i need to run in ssh that will mirror Change Multiple Sites IP
    By sharmaine1111 in forum Hosting Security and Technology
    Replies: 4
    Last Post: 09-21-2009, 11:19 PM
  3. What software to run a company web-accessible file sharing platform? Help!
    By CodyLoco in forum Hosting Software and Control Panels
    Replies: 3
    Last Post: 08-23-2008, 05:06 AM
  4. New vps,two sites hosted and all down.
    By macinesa in forum VPS Hosting
    Replies: 4
    Last Post: 06-23-2007, 01:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •