How to run scripts on seerver IP not on domain ?

igl00

New member
Joined
Apr 12, 2010
Messages
4
Okay so i have DA installed, works very good. But to for exampel run php scripts or mysqwl databases i have to use some domain name.

Would it be possible to have html etc foldersnot onyl for domains but also fo the servers ip? So that some simple scripts i could run right away from ip/script instead of adding domains just to do so.

Please advice.
 
If you put scripts into /var/www/html and marked them as owned by webapps you should be able to run them thus:
Code:
http://1.2.3.4/scriptname
where of course you need your own IP# and scriptname.

Jeff
 
If its a known script (joomla, etc), just enter the IP instead of the domain name in the install script?

Or, if its your script, avoid adding the domain name to any includes, images, etc... instead do

i.e
Code:
<img src="images/blah.jpg">
or
Code:
<img src="../images/blah.jpg">
or
Code:
<?php include "includes/file.php"; ?>
or
Code:
<?php include "../includes/file.php"; ?>
 
hey guys. what i didnt understand is herw is the html files for the domain, now i knwo its in /var/www/html :)

thanx a lot!
 
I thought you meant instead of domains, you wanted to access them by their own dedicated IP, I saw nothing from you meaning the /var/www/html
 
Back
Top