Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Servers - DNS

Author
Message
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 2nd Dec 2006 21:34 Edited at: 2nd Dec 2006 21:35
Hi,
If i was to have mutliple no-ip.org addresses lets say for example test.no-ip.org and server.no-ip.org how could i make apache goto different folder for the different addresses as i only have 1 ip adressess.
Thnaks,
Alex


Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 2nd Dec 2006 22:03
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 2nd Dec 2006 22:42
their called subdomains

_Nemesis_
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location: Liverpool, UK
Posted: 2nd Dec 2006 23:15
On a side note - if you're forwarding the port to a machine make sure that you look for an option to forward host headers when using a web service on port 80. ISA particularly has a tendency to not to like to do this and requires a look in the firewall config to sort it. I spent hours figuring out why my host headers weren't working properly, and that was it.

[url="http://www.devhat.net"]www.devhat.net[/url] :: Devhat IRC Network.
Current Project: ASP Content Management System
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 2nd Dec 2006 23:22 Edited at: 2nd Dec 2006 23:25
so i would add something like:


and aslo another question, what ports need to be unblocked by firewall for FTP ? I unblocked port 21 but i just get a log in error on my FTP, its deffinatley the firewall as it allow me access on the ftp server itself, i checked its documenetation but it does not say

Any ideas?

Thanks for all your help,
Alex


Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 2nd Dec 2006 23:53
Quote: "ISA particularly has a tendency to not to like to do this"

Thats what you get for using windows to do something usefull

hi - it'd be more like:

where that IP is the local IP of the server.

FTP is port 21...

Log in error could be cause by:
1) Linux having a stupid security setting (eg, SELinux in Fedora)... Google is your friend here
2) You might need to port FORWARD rather than just unblock it on the firewall otherwise how does the router know where to send the data?

[center]
_Nemesis_
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location: Liverpool, UK
Posted: 3rd Dec 2006 00:06
Quote: "Thats what you get for using windows to do something usefull "

PEBKAC more often than not

[url="http://www.devhat.net"]www.devhat.net[/url] :: Devhat IRC Network.
Current Project: ASP Content Management System
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 3rd Dec 2006 00:11 Edited at: 3rd Dec 2006 00:13
Thanks, ok the problem with the FTP is deffinatley firewall, i switched the suse linux firewall off and then it started working no login error ill have look at the firewall more closley With that virutal host thing can i add as many of those blocks of code but just change ServerName test.no-ip.org and that DocumentRoot /opt/lampp/htdocs/test.no-ip.org so that differnet domains go to different folders
Thanks again,
Alex


Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 3rd Dec 2006 01:16
you can indeed...

[center]
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 3rd Dec 2006 01:22
YAY is it possible to can get the virtual hosts from a database like MySQL or something, or do they have to be in that file? I dont want the config file to get all messy
Thanks,
alex


Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 3rd Dec 2006 02:13
You can get it to add additional files, which is how config panels like plesk do it.

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 3rd Dec 2006 02:42
Quote: "You can get it to add additional files, which is how config panels like plesk do it."


A beer to the person who guesses what the next question is before 'hi' asks it

[center]
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 3rd Dec 2006 12:27 Edited at: 3rd Dec 2006 12:28
ha ha, I looked on the web it looks like i just add this correct me if i am wrong


Is it possible to keep adding this to it so lots of files like folders in a tree, so in the config file i could have this

then in the users file it could go off into other files eg


Thanks,
Alex


Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 3rd Dec 2006 16:10
I'm not totally sure, but I would assume so

AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 3rd Dec 2006 21:15 Edited at: 3rd Dec 2006 21:15
One last question, in the php.ini file there is the varible
Quote: "disable_functions"
is it possible to make this varible only affect certain directors?
Thanks,
Alex


Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 4th Dec 2006 10:39
Quote: "only affect certain directors"

You want it to only effect the heads of certain companies?

[center]
adr
21
Years of Service
User Offline
Joined: 21st May 2003
Location: Job Centre
Posted: 4th Dec 2006 14:19
To answer your question about adding in more virtual hosts ...

If you look in your apache config, you'll see a line that says:



That will include any file with the suffix .conf in the conf.d directory. For me, that's in /etc/httpd/conf.d/ ...

So, create a new (valid) virtual host config file, call it unique_file_name.conf and when apache restarts, your new virtual host config file will be included.


I'm superfly TNT
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 4th Dec 2006 16:55 Edited at: 4th Dec 2006 16:56
Thanks adr, sorry about spelling ill just rephrase the question:

One last question, in the php.ini file there is the varible

Quote: "disable_functions"
is it possible to make this varible only affect certain folders?
Thanks,
Alex



adr
21
Years of Service
User Offline
Joined: 21st May 2003
Location: Job Centre
Posted: 4th Dec 2006 17:07
I don't understand ...

The functions will only be disabled when the scripts are run from certain directories? Or are you trying to restrict to which directories certain functions can write?


I'm superfly TNT
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 4th Dec 2006 20:48 Edited at: 4th Dec 2006 20:51
Sorry, thats what i meant:

Quote: "The functions will only be disabled when the scripts are run from certain directories?"


e.g a folder called admin can run all php commands where as the folder called user has limited php functions such as the mail() and chown() commands disabled

Thanks,
Alex


Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 5th Dec 2006 10:34
I doubt thats possible...

[center]

Login to post a reply

Server time is: 2024-11-17 23:24:51
Your offset time is: 2024-11-17 23:24:51