Issues with Apache, Domain on 80, subdomain on 8080
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am wondering if I am missing something in the vhost
Any comments or help is always much appreciated
-nonexist
Uh, any reason you're VirtualHost config as given doesn't match at all what you described? Netier port 8080 nor the server name (or alias) "paradision.mydomain.com" appear in the vhost config you give...
Sorry. Complete issue with my config. I was messing around with it as I was posting this to see if I could find a fix, and forgot to fix it.
But the two ports are 80 and 6969. I am trying to get the subdomain on the port 6969, so it would be like "paradiso.mydomain.com:6969" but it gives errors. The file I have in place for the subdomain works if you go to mydomain.com:6969.
Sorry for the confusing post :?
Code:
<VirtualHost *:80>
ServerAdmin admin@mydomain.com
ServerName mydomain.com
ServerAlias www.mydomain.com
DocumentRoot /home/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
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
ServerSignature On
</VirtualHost>
and the
subdomain
Code:
<VirtualHost *:6969>
ServerAdmin admin@mydomain.com
ServerName subdomain.mydomain.com
ServerAlias www.subdomain.mydomain.com subdomain.mydomain.com
DocumentRoot /home/www/subdomain/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/www/subdomain/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
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
ServerSignature On
</VirtualHost>
I am wondering if I am missing something in the vhost
Why is it that you are trying "paradiso.mydomain.com:6969" when you have in your conf "subdomain.mydomain.com"?
Also make sure that your dns configs for the two are set properly.
It shows that it is listening for :6969, and I can get there. I type in mydomain.com:6969 and I get my little holder page saying hello. Now how can I get that to work with the subdomain on that port.
Is paradiso.mydomain.com defined in your DNS server?
Apache will only send requests to virtualhosts if the request matches the v-host definition.
If there is no match, it uses the first virtualhost container.
Before making the changes in your DNS Server, add the name and IP to your hosts file and test it.
Don't forget to remove the hosts entry when you are done.
Bob
127.0.0.1 localhost
192.168.1.180 toast.mydomain.com toast
192.168.1.180 paradiso.mydomain.com paradiso
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
@chitambira sorry about that.
Im not really sure what I would change. I have most of the configuration through GoDaddy, so would I add CNAME like
Host: paradiso Points To: mydomain.com TTL: 1 hour
Or would I have it point to @ with the port like
Host: paradiso Points To: @:6969 TTL: 1 hour
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.