hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : VPS Hosting : Run a script on VPS accessible to all hosted sites
Reply

VPS Hosting Virtual private server discussion and vps hosting solutions. Review VPS hosting providers and offer advice on virtual web hosting solutions. If your service is unavailable, please click here.
Forum Jump

Run a script on VPS accessible to all hosted sites

Reply Post New Thread In VPS Hosting Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-22-2011, 01:14 PM
fqaisrani fqaisrani is offline
Junior Guru Wannabe
 
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?

Reply With Quote


Sponsored Links
  #2  
Old 02-22-2011, 07:36 PM
HostXNow HostXNow is offline
Premium Member
 
Join Date: Oct 2009
Location: England, United Kingdom
Posts: 8,262
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

Reply With Quote
  #3  
Old 02-22-2011, 07:41 PM
mitgib mitgib is offline
Southern Yankee
 
Join Date: Sep 2006
Location: The Not So Deep South
Posts: 923
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

Reply With Quote
Sponsored Links
  #4  
Old 02-23-2011, 02:48 AM
fqaisrani fqaisrani is offline
Junior Guru Wannabe
 
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

Reply With Quote
  #5  
Old 02-23-2011, 09:08 AM
mitgib mitgib is offline
Southern Yankee
 
Join Date: Sep 2006
Location: The Not So Deep South
Posts: 923
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

Reply With Quote
  #6  
Old 02-23-2011, 12:47 PM
dmmcintyre3 dmmcintyre3 is offline
Aspiring Evangelist
 
Join Date: Apr 2010
Location: North Carolina
Posts: 429
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
  }

__________________
Advertise on FreeVPS.us

Reply With Quote
  #7  
Old 02-23-2011, 08:08 PM
PremiumHost PremiumHost is offline
Web Hosting Master
 
Join Date: Jan 2005
Posts: 2,812
Possible problem: end user is behind firewall and cannot access custom port.

__________________
Reseller Hosting Cpanel SSD 32GB RAM CloudLinux Softaculous
Windows Reseller Windows 2008 MSSQL 2012 SmarterMail Enterprise

Windows VPS Hyper-V US & UK - PremiumReseller.com 7 Years in Business

Reply With Quote
Reply

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

Related posts from TheWhir.com
Title Type Date Posted
Pingdom Study Measures Popularity of Onshore Hosting Web Hosting News 2013-05-17 12:40:15
Pingdom Talks Top Web Hosting Cities and Countries Web Hosting News 2013-03-27 18:49:54
Houston Hosts More than 50K of the Top Million Websites: Pingdom Web Hosting News 2013-03-07 10:45:31
Pingdom Study Finds Africa Hosts 0.27 Percent of Top One Million Websites Web Hosting News 2012-06-28 10:41:51
Web Host AIS Network Offers Cloud-Based SharePoint 2010 For Internet Sites Web Hosting News 2012-01-03 23:16:04


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?