2 Replies Latest reply on Jul 8, 2009 4:49 PM by PegasusT4

    cfinput telephone mask not working with Apache virtual host

    PegasusT4

      WinXP latest sp, CF8, Apache latest version installed. IE8, FF3.5, FF3.01

       

      In this setup I cannot get the telephone mask ( or, for that matter the required="yes" ) to work with a virtual host. If I run the code using http://localhost/cf8test/telephone.cfm it works fine and the mask and required attribute work correctly. If I run it as http://dev.cf8test.com/telephone.cfm then the mask and attribute do not work. Otherwise, the virtual host works correctly. Any suggestions what is going on here?

       

      Thanks,

      Doug

       

       

      <cfform method="post" action="">
           <cfinput type="text" message="Please enter a phone number." required="yes" name="phone" validate="telephone" mask="(999) 999-9999" maxlength="15" />

       

           <cfinput name="premium" type="submit" value="Submit  Registration" />

      </cfform>

       

      Apache httpd.conf contains..

      DocumentRoot "C:/inetpub/wwwroot"

      <Directory "C:/inetpub/wwwroot">

       

      Apache virtual host setup is as follows.

       

      <VirtualHost *:80>
          ServerAdmin myemail@email.com
          DocumentRoot "c:\inetpub\wwwroot\cf8test"
          ServerName dev.cf8test.com
          DirectoryIndex index.cfm

       

          <Directory />
          Options FollowSymLinks
          AllowOverride All
          Order allow,deny
          Allow from all
      </Directory>
      </VirtualHost>

       

      hosts file is as follows

      127.0.0.1       localhost

      127.0.0.1    dev.cf8test.com