NameVirtualHost *:80
<VirtualHost *:80>I tried that. I'm including the actual config file in sites-available if it helps.<VirtualHost *:80>ServerAdmin webmaster@localhostServerName morebearsmore.comServerAlias www.morebearsmore.comDocumentRoot /var/www/morebearsmore.com/public_html<Directory />Options FollowSymLinksAllowOverride None</Directory><Directory /var/www/>Options Indexes FollowSymLinks MultiViewsAllowOverride NoneOrder allow,denyallow from all</Directory>ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/<Directory "/usr/lib/cgi-bin">AllowOverride NoneOptions +ExecCGI -MultiViews +SymLinksIfOwnerMatchOrder allow,denyAllow from all</Directory>ErrorLog ${APACHE_LOG_DIR}/error.log# Possible values include: debug, info, notice, warn, error, crit,# alert, emerg.LogLevel warnCustomLog ${APACHE_LOG_DIR}/access.log combined</VirtualHost>On Thu, Jan 30, 2014 at 10:26 AM, Otis DeWitt <otis.dewitt@xxxxxxxx> wrote:Try creating a server alias and restart apache.
Sent from my iPhoneI setup an apache server a while back without a virtualhost and got everything working fine. I added a virtualhost for my wife and it seems to work fine on desktops, but on our phones (an iphone and a windows phone), both redirect to my root site if the user adds www to the domain in the address bar. I assume it's just some mistake in my virtualhost setup, but I don't understand why it works on desktop but not mobile. I added a ServerAlias to include the www prefix onto the domain and restarted apache, but it doesn't seem to make a difference. I always get the "root" (hope I'm using the right naming convention) host back.