Originally Posted by
volkswagner
Does this happen if you are outside your LAN? If it works properly outside your LAN, it may be an issue with your router or apache settings.
No, outside my LAN, when I go to http://subdomain.example.com, i have it forwarded to my IP, and it resolves to my IP, so it doesnt keep the subdomain.example.com address. Instead it reverts to 123.456.789.
Originally Posted by
volkswagner
What type of record did you set for your DNS at your hosting site? Was it an "A Record"?
Ok. This is the part that has been bothering me. For subdomains on my hosting site, i can only change the root directory or a forwarding address. I have no clue where to mess with any records. If you can give me pointers on that, i'd appreciate it.
Originally Posted by
volkswagner
What does your virtual host file look like and also your index.html or similar?
Well, I used whatever examples i can to compile them. Along with the defaults.
Heres an example of what it looks like (addresses and certain records have been changed for privacy issues)
Code:
<VirtualHost *:80>
ServerAdmin email@gmail.com
ServerName home.example.com
ServerAlias www.home.example.com *.home.example.com
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
I also have an SSL enabled vhost, that has same directives plus the mod_ssl settings.
My index is a simple html document right now, with nothing special. Im not sure if it has to do with anything. It is being hosted from home though, not my hosting company.
In the future I plan to use my home server to host needed documents online, of course I'll do this as soon as i can learn more about security and authentication.
Anyway, thanks for the reply, and interest to help me.
Bookmarks