Glaanieboy
OSNN Veteran Addict
- Joined
- 6 Mar 2002
- Messages
- 2,628
I am running Apache on a local network for a couple of months now and it's running fine. Now I wanted to make it public, so I subscribed for a Dynamic DNS service (www.dyndns.org) and set a new domain-name of glaanieboy.dyndns.org. I set my router to accept any connection from port 80 and redirect it to my computer, changed ServerName in the Apache2 httpd.conf from <ip> to glaanieboy.dyndns.org.
This should be sufficient I thought, well, it was not. I have a shell account in the UK, and I tried to connect to my computer using the elinks browser on the shell. http://glaanieboy.dyndns.org worked well, as well as a subdirectory I created in the Apache root (htdocs). Now I have some other directories on another drive, and I pointed to them with an Alias fakename "Drive:/path/to/dir" and added this Directory in httpd.conf:
When I try to go to http://glaanieboy.dyndns.org/fakename (this doesn't exist, I only wrote this for demonstration purposes) with the elinks browser on the shell account, it won't work, it's trying to connect, but doesn't get any data. When I look at the connection logs, I see that someone from that IP has tried to connect to that dir, but got a 301 or 302 http-error back. Now I know that 301 or 302 means that the site has moved, but I don't want that, I only want to see 200 (page ok, now loading) 'errors'.
I just asked someone else to try it for me (she lives in the US), but she couldn't get to either glaanieboy.dyndns.org or glaanieboy.dyndns.org/fakename.
Can someone look at the configurations I made and verify if they are (in)correct? What should I change besides the changes I made?
This should be sufficient I thought, well, it was not. I have a shell account in the UK, and I tried to connect to my computer using the elinks browser on the shell. http://glaanieboy.dyndns.org worked well, as well as a subdirectory I created in the Apache root (htdocs). Now I have some other directories on another drive, and I pointed to them with an Alias fakename "Drive:/path/to/dir" and added this Directory in httpd.conf:
Code:
<Directory "Drive:/path/to/dir">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
When I try to go to http://glaanieboy.dyndns.org/fakename (this doesn't exist, I only wrote this for demonstration purposes) with the elinks browser on the shell account, it won't work, it's trying to connect, but doesn't get any data. When I look at the connection logs, I see that someone from that IP has tried to connect to that dir, but got a 301 or 302 http-error back. Now I know that 301 or 302 means that the site has moved, but I don't want that, I only want to see 200 (page ok, now loading) 'errors'.
I just asked someone else to try it for me (she lives in the US), but she couldn't get to either glaanieboy.dyndns.org or glaanieboy.dyndns.org/fakename.
Can someone look at the configurations I made and verify if they are (in)correct? What should I change besides the changes I made?