DNS problem with xammp permissions.

Problems with the Windows version of XAMPP, questions, comments, and anything related.

DNS problem with xammp permissions.

Postby Smokeeee » 05. October 2014 16:43

Hi, Ive searched countless times for a fix since friday for this problem. What i effectively want to do is give my /htdocs/talk directory direct access from www.JustPK.me

Ive done everything i can from the dns settings but they now say its my servers config. When i see other people posting the fix to allow all access is doesnt look the same as in mine. The forum can be accessed by all if i use the ip http://37.59.171.204/talk/ but nothing happens when i use the justpk.me which has been corrected with the proper Arecord and even tried a url frame to redirect it to the ip. Nothing is working. This is my httpd confg file which doesnt match what most people wrote in their fixes.

Code: Select all
#
# XAMPP settings
#

<IfModule env_module>
    SetEnv MIBDIRS "C:/xampp/php/extras/mibs"
    SetEnv MYSQL_HOME "\\xampp\\mysql\\bin"
    SetEnv OPENSSL_CONF "C:/xampp/apache/bin/openssl.cnf"
    SetEnv PHP_PEAR_SYSCONF_DIR "\\xampp\\php"
    SetEnv PHPRC "\\xampp\\php"
    SetEnv TMP "\\xampp\\tmp"
</IfModule>

#
# PHP-Module setup
#
LoadFile "C:/xampp/php/php5ts.dll"
LoadFile "C:/xampp/php/libpq.dll"
LoadModule php5_module "C:/xampp/php/php5apache2_4.dll"

<FilesMatch "\.php$">
    SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
    SetHandler application/x-httpd-php-source
</FilesMatch>

#
# PHP-CGI setup
#
#<FilesMatch "\.php$">
#    SetHandler application/x-httpd-php-cgi
#</FilesMatch>
#<IfModule actions_module>
#    Action application/x-httpd-php-cgi "/php-cgi/php-cgi.exe"
#</IfModule>


<IfModule php5_module>
    PHPINIDir "C:/xampp/php"
</IfModule>

<IfModule mime_module>
    AddType text/html .php .phps
</IfModule>

ScriptAlias /php-cgi/ "C:/xampp/php/"
<Directory "C:/xampp/php">
    AllowOverride None
    Options None
    Require all denied
    <Files "php-cgi.exe">
          Require all granted
    </Files>
</Directory>

<Directory "C:/xampp/cgi-bin">
    <FilesMatch "\.php$">
        SetHandler cgi-script
    </FilesMatch>
    <FilesMatch "\.phps$">
        SetHandler None
    </FilesMatch>
</Directory>

<Directory "C:/xampp/htdocs/xampp">
    <IfModule php5_module>
       <Files "status.php">
          php_admin_flag safe_mode off
       </Files>
    </IfModule>
    AllowOverride AuthConfig
</Directory>

<IfModule alias_module>
    Alias /security "C:/xampp/security/htdocs/"
    <Directory "C:/xampp/security/htdocs">
        <IfModule php5_module>
          <Files "xamppsecurity.php">
             php_admin_flag safe_mode off
          </Files>
        </IfModule>
        AllowOverride AuthConfig
        Require all granted
   </Directory>

    Alias /licenses "C:/xampp/licenses/"
    <Directory "C:/xampp/licenses">
        Options +Indexes
        <IfModule autoindex_color_module>
            DirectoryIndexTextColor  "#000000"
            DirectoryIndexBGColor "#f8e8a0"
            DirectoryIndexLinkColor "#bb3902"
            DirectoryIndexVLinkColor "#bb3902"
            DirectoryIndexALinkColor "#bb3902"
        </IfModule>
        Require all granted
   </Directory>

    Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
    <Directory "C:/xampp/phpMyAdmin">
        AllowOverride AuthConfig
        Require all granted
    </Directory>

    Alias /webalizer "C:/xampp/webalizer/"
    <Directory "C:/xampp/webalizer">
        <IfModule php5_module>
          <Files "webalizer.php">
             php_admin_flag safe_mode off
          </Files>
        </IfModule>
        AllowOverride AuthConfig
        Require all granted
    </Directory>
</IfModule>

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
        #Require local
   ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>


Im not getting any closer to making it use the domain. I did get it to make the forum appear but it didnt load the css and images and was just a white page with the blue links on.

Any support would be greatly appreciated :)
Smokeeee
 
Posts: 2
Joined: 05. October 2014 16:34
Operating System: windows server 2008 r2

Re: DNS problem with xammp permissions.

Postby Nobbie » 05. October 2014 20:59

Smokeeee wrote:but nothing happens when i use the justpk.me


What is not very surprising, you need to configure VirtualHosts for that but I cannot see nothing about that in your configuration.
Nobbie
 
Posts: 8775
Joined: 09. March 2008 13:04

Re: DNS problem with xammp permissions.

Postby Smokeeee » 06. October 2014 02:56

Oh. Thanks :) So, to clarify, do i add this into my vhosts? effectivly, id like it to point to www.justpk.me - but i cant seem to get it working >.<

Code: Select all
NameVirtualHost *
  <VirtualHost *>
    DocumentRoot "C:\xampp\htdocs"
    ServerName justpk.me
  </VirtualHost>
  <VirtualHost *>
    DocumentRoot "C:xampp/htdocs/talk.index.php"
    ServerName justpk.me
  <Directory "C//:xampp/htdocs/">
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>
Smokeeee
 
Posts: 2
Joined: 05. October 2014 16:34
Operating System: windows server 2008 r2

Re: DNS problem with xammp permissions.

Postby gsmith » 06. October 2014 06:11

another case of a web forward, no longer a stealth one at least.
www.justpk.me -> http://xx.xx.xx.xx/talk

VHosts will do no good here.
That said, I'm bowing out here since xampp is for development, not for live sites with an SMF forum.
gsmith
 
Posts: 194
Joined: 29. November 2013 18:04
Location: San Diego
XAMPP version: 0.0.0
Operating System: Win XP to 2012R2/VS 6,9,11,14

Re: DNS problem with xammp permissions.

Postby Nobbie » 06. October 2014 10:24

gsmith wrote:another case of a web forward, no longer a stealth one at least.
http://www.justpk.me -> http://xx.xx.xx.xx/talk

VHosts will do no good here.


Maybe I got it wrong, but I thought that www.justpk.com is the same Server as http://37.59.171.204, but www.justpk.com should point to DocumentRoot /htdocs/talk (instead of /htdoc). In that case a VirtualHost is exactly what is required.
Nobbie
 
Posts: 8775
Joined: 09. March 2008 13:04

Re: DNS problem with xammp permissions.

Postby Nobbie » 06. October 2014 10:34

Smokeeee wrote:
Code: Select all
NameVirtualHost *
  <VirtualHost *>
    DocumentRoot "C:\xampp\htdocs"
    ServerName justpk.me
  </VirtualHost>
  <VirtualHost *>
    DocumentRoot "C:xampp/htdocs/talk.index.php"
    ServerName justpk.me
  <Directory "C//:xampp/htdocs/">
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>


Sorry, this is nonsense, quite a lot of errors. You defined justpk.me twice (that does not work) and DocumentRoot has to be a folder, not a file. At next, there is missing an Alias for http://www.justpk.com. And finally you completely misspelled "C//:xampp/htdocs/". You should read the error log after enabling VirtualHosts.

Code: Select all
NameVirtualHost *
  <VirtualHost *>
    DocumentRoot "C:/xampp/htdocs"
    ServerName localhost
 <Directory "C:/xampp/htdocs/">
    Order allow,deny
    Allow from all
  </Directory> 
</VirtualHost>
  <VirtualHost *>
    DocumentRoot "C:/xampp/htdocs/talk"
    ServerName justpk.me
    ServerAlias www.juspk.me
  <Directory "C:/xampp/htdocs/talk">
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>


P.S.: I just did a ping on justpk.me, obviously it is a different server than http://37.59.171.204/, so forget about VirtualHosts.
Nobbie
 
Posts: 8775
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 63 guests