Help With Server

Started on the old forum in April 2008 · view the original in the archive · old links redirect here

9 replies · 800 views · started 18 years ago · 1 min read

2 participants
djdevil89 Senior · 287 posts #1

hello i am running my own server with wamp and get the following problem i want to host multiple domains on it but always when i try to make it the domain leads to the same folder as my main address does any one know how i can fix that error?

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
amylee Principal · 1,092 posts #2

need to add something like this in your httpd.conf or whatever your server conf file is

DocumentRoot c:\path\to\dir
ServerName site name goes here
<Directory "c:\path\to\dir">
allow from all
Options -Indexes
</Directory>

change it so it matches your server

djdevil89 Senior · 287 posts #3

hmmm okay will try thanx

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
djdevil89 Senior · 287 posts #4

Hmmm still not working

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
djdevil89 Senior · 287 posts #5

ok think its working now can anyone test this link http://myserver23.zapto.org today at 8 pm uk time please and tell me what you see?

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
amylee Principal · 1,092 posts #6

btw whenever you make changed to the server conf files you need to restart apache in order for any changed to be made plus you should have an emample conf fille or at least an example virtual server like i gave above

djdevil89 Senior · 287 posts #7

btw whenever you make changed to the server conf files you need to restart apache in order for any changed to be made plus you should have an emample conf fille or at least an example virtual server like i gave above

Have it woorking now i just need to figure out how to change my dynamic ip to static ip

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
amylee Principal · 1,092 posts #8

need to contact your isp

djdevil89 Senior · 287 posts #9

lol okay because i think no-ip.com is to expensive

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
djdevil89 Senior · 287 posts #10

grrr my isp doesnt gives static ip does anyone know something cheaper then no-ip?

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close