TurnKey Linux Virtual Appliance Library

Is this a real APache Forum?

Shon Gale's picture

Where is Apache?? This is wierd, you google Apache 2 Forum and get an ISP??? Are you Apache?? Where is Apaches Forums? Only a real Apache expert can help me. I tried all the other so-called Apache Forums and nobody could answer my question. Maybe I will take a chance.

I have a site called www.inwoon.net

I am only allowed 1 domain name and unlimited sub-domains. So my bright idea is to host lots of sites and relate them to their subdomain name.

drwxrwxr-x.  6 ftpuser  ftpgroup 4096 Jan 25 09:47 3-gen
drwxrwxr-x.  5 ftpuser  ftpgroup 4096 Jan 25 09:47 emanon
drwxrwxr-x.  5 ftpuser  ftpgroup 4096 Jan 25 09:48 FreeWillRadio
drwxr-xr-x  11 ftpuser  ftpgroup 4096 Jan 25 09:52 inwoon
drwxr-xr-x   8 ftpuser  ftpgroup 4096 Jan 25 09:43 itssoezy
drwxrwxr-x.  6 ftpuser  ftpgroup 4096 Jan 25 10:01 paully
drwxrwxr-x.  2 ftpuser  ftpgroup 4096 Aug 10 18:25 y2kxn

So far I have 3-gen.net, emanongroup.net, FreeWillRadio.org, www.inwoon.net itssoezy.net and paullysongsmith.com using subdomains.

I have each subdomain setup as a virtual host using Apache 2.2.15

NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot "/var/www/html/web/inwoon"
ServerName localhost.localdomain
ServerAlias localhost
ErrorLog /var/www/html/web/itssoezy/logs/inwoon_error_log.txt
LogLevel warn
</VirtualHost>
 
<VirtualHost *:80>
DocumentRoot "/var/www/html/web/inwoon"
ServerName www.inwoon.net
ServerAlias www.inwoon.net
ErrorLog /var/www/html/web/inwoon/logs/inwoon_error_log.txt
LogLevel error
ServerAdmin manager@emanongroup.net
</VirtualHost>
 
<VirtualHost *:80>
DocumentRoot "/var/www/html/web/emanon"
ServerName www.emanongroup.net
ServerAlias emanon.inwoon.net
ErrorLog /var/www/html/web/emanon/logs/emanon_error_log.txt
LogLevel warn
</VirtualHost>
 
<VirtualHost *:80>
DocumentRoot "/var/www/html/web/itssoezy"
ServerName www.itssoezy.net
ServerAlias itssoezy.inwoon.net
ErrorLog /var/www/html/web/itssoezy/logs/itssoezy_error_log.txt
LogLevel error
ServerAdmin manager@emanongroup.net
</VirtualHost>
 
<VirtualHost *:80>
DocumentRoot "/var/www/html/web/3-gen"
ServerName www.3-gen.net
ServerAlias 3-gen.inwoon.net
ErrorLog /var/www/html/web/3-gen/logs/3-gen_error_log.txt
LogLevel warn
</VirtualHost>
 
<VirtualHost *:80>
DocumentRoot "/var/www/html/web/FreeWillRadio"
ServerName www.freewillradio.org
ServerAlias freewillradio.inwoon.org
ErrorLog /var/www/html/web/FreeWillRadio/logs/freewill_error_log.txt
LogLevel warn
</VirtualHost>
 
<VirtualHost *:80>
DocumentRoot "/var/www/html/web/paully"
ServerName www.paullysongsmith.com
ServerAlias *.paullysongsmith.com
ErrorLog /var/www/html/web/paully/logs/paully_error_log.txt
LogLevel warn
</VirtualHost>
 
This is where I am stuck. When I put www.inwoon.net through the Sitemap Generator at http://www.auditmypc.com/xml-sitemap.asp it works great.
But when I put itsSOezy.net or any of my subdomains through the Sitemap Generator it reports that the site index.php is a frame and errors out and goes no furthur.
I have been through 5 forums supposedly dealing with Apache and have had no luck figuring this out.
Anybody????
By the way nice editor!!
Jeremy's picture

Apache doesn't have official forum AFAIK

Only a mailing list, and some pretty good documentation. Have a look here.

Keep in mind that Ubuntu/Debian (TKL v11.x is based on Ubuntu 10.04) have a slightly non-standard setup so the Ubuntu forum is possibly a good place to ask question.

I'm certainly no Apache expert, but I think your problem is a DNS one, rather than an Apache one. At a quick glance your apache config looks fair, but you still need to have each of the domains pointing to your IP. The way you have them set up currently, they are separate domains, not sub-domains (despite the fact that they have those aliases). If you want to use domains then you'll still need to have the domains point to your server via DNS. Otherwise there is no path to your server.

Apacha has no forum

Can you give me an example on how to bind the ip to each domain. I only have one ip address and my DNS record works great. I CAN GET TO EVERY SITE no prob. I have logs that say that no problem. It's just that they all think they are frames.

Otherwise I have iPower that sold me the actual domain names. With them I can use either DNS nameservers (already done in the comcast record above) nameservers, a web directory or a subdomain to point to my domain names. I don't know what else to do. I already have lot's of DNS setup.

Eric (tssgery)'s picture

I'm no apache expert, but...

I don't think this is an apache issue at all. All the DNS records seem to resolve fine and apache is serving the pages correctly.

 

What makes you think it's apache instead of your site, provider or the sitemap generator?


I'm no apache expert, but...

Love it man. I know I thought the same thing. But all the Sitemap Generators and the SEO scanners bomb out on the frames thing. I was told to redirect the frame to my main index.php file. Even though the frame files don't exist I apparently can redirect them using .htaccess so that is the first fix I have heard of. I knew I could redirect. So will probably do that. I only have 1 site that I need the SEO work on. itsSOezy.net needs to be in the search engines big time. The last time I googled it the only other thing that came up was 'Its so easy' by Linda Ronstadt.

I am the site provider and the DNS record posted above is my site. What a mess.

The only place I had to look is Apache because the Sitemap Generator also says that the web server is Nginx / Varnish and doesn't recognize Apache at all except for www.inwoon.net.

URL info

This si from the sitemap generator.

URL http://itssoezy.net
Encoding  
Length 125
Type text/html
Date 16.01.12 21:47:11
Expiration  
Modified 06.11.11 15:35:18

Header fields

 

  HTTP/1.1 200 OK
content-type text/html
last-modified Sun, 06 Nov 2011 23:35:18 GMT
content-length 125
server Nginx / Varnish
date Tue, 17 Jan 2012 05:47:11 GMT

 

Thanks for the feedback. There has to be an answer somewhere.

lulo lulito's picture

I agree with Jeremy, i had

I agree with Jeremy, i had serious DNS problems when I self hosted my domain U-Pull-It, at first it worked perfect when I had just one domain, but when I added subdomains and other domains to the same host ie subdomain1.u-pull-it-junkyard.com or my new site I wanted to host pick-and-pull.com then things went down hill. because the dns were not being refresh automatically, every time I created a subdomain or setup a new virtual host(domain) i had to restart apache. then it would recognize the dns changes and the sites will work.

so next time you have a problem you may need to restart apache by doing command:

$ sudo /etc/init.d/apache2 restart

or

# /etc/init.d/apache2 restart

DNS & Apache

Shon,

I will not seek so much to find the answer as much as to understand the question better.

Steve

asp problem

I am new to turnkey, but i understand that it is the easiest way to create a server that can run ASP webpages.

I just installed Turnkey ASP-NET-APACHE

I can't get the browser to run the ASP pages. It only asked if  I want to save the file.

What do I need to do?

 

Jeremy's picture

Hi Jak

I suggest you start a new thread. Your post is not at all relevant to this thread.

Also for the record TKL ASP.NET does not support older style ASP pages (see the Mono FAQ).

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)