Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 lost apache2triadcp admin area outside localhost (& xmai
Google
Post new topic Reply to topic
Author Message
shawngibson
 
 


Joined: 09 Dec 2006
Posts: 8

PostPosted: Wed May 09, 2007 3:14 am Reply with quoteBack to top

I have a rather complex setup: one static IP pointing to numerous domains. Everything works in the domains, but I can't access apache2triadcp outside localhost, the root (216.240.9.27) points to shawngibson.com and I've lost the ability to recieve emails (I've never actually been able to get emails to send, but that's another issue).

Can someone please have a look at my changes in the httpd.conf file and please let me know if I've done something glaringly wrong here?

#server config
ServerName shawngibson.com:80
ServerAdmin admin@shawngibson.com

NameVirtualHost 216.240.9.27

<VirtualHost 216.240.9.27>
DocumentRoot D:/Apache/htdocs/shawngibson.com
ServerName shawngibson.com
ServerAlias www.shawngibson.com
ErrorLog logs/shawngibson.com-error.log
CustomLog logs/shawngibson.com-access.log combined
# Other directives here
</VirtualHost>

<VirtualHost 216.240.9.27>
DocumentRoot D:/Apache/htdocs/faceitphoto.ca
ServerName faceitphoto.ca
ServerAlias www.faceitphoto.ca
ErrorLog logs/faceitphoto.ca-error.log
CustomLog logs/faceitphoto.ca-access.log combined
#DirectoryIndex index.html index.php index.html.var index.cgiindex.pl index.htm index.php3 index.php4 index.shtml
# Other directives here
</VirtualHost>

<VirtualHost 216.240.9.27>
DocumentRoot D:/Apache/htdocs/mygallerysite.net
ServerName mygallerysite.net
ServerAlias www.mygallerysite.net
ErrorLog logs/mygallerysite.net-error.log
CustomLog logs/mygallerysite.net-access.log combined
# Other directives here
</VirtualHost>

<VirtualHost 216.240.9.27>
DocumentRoot D:/Apache/htdocs/counterchaos.com
ServerName counterchaos.com
ServerAlias www.counterchaos.com
ErrorLog logs/counterchaos.com-error.log
CustomLog logs/counterchaos.com-access.log combined
# Other directives here
</VirtualHost>

<VirtualHost 216.240.9.27>
DocumentRoot D:/Apache/htdocs/fleshax.net
ServerName fleshax.net
ServerAlias www.fleshax.net
ErrorLog logs/fleshax.net-error.log
CustomLog logs/fleshax.net-access.log combined
# Other directives here
</VirtualHost>

<VirtualHost 216.240.9.27>
DocumentRoot D:/Apache/htdocs/
ServerName 216.240.9.27
ErrorLog logs/216.240.9.27-error.log
CustomLog logs/216.240.9.27-access.log combined
# Other directives here
</VirtualHost>

Any help would be greatly appreciated:)

Shawn
View user's profileSend private message
dale
 
 


Joined: 11 Jun 2006
Posts: 51
Location: las vegas, nv

PostPosted: Mon May 14, 2007 6:51 am Reply with quoteBack to top

I think that the main idea of not being able to use the apache2triadcp outside localhost is that no one else can mess with your stuff. But if this is what you really want to do, try making these changes using a subdomain. You can call it whatever you want, for example the subdomain would be xyz.shawngibson.com

<VirtualHost 216.240.9.27>
DocumentRoot D:/Apache/htdocs/apache2triadcp
ServerName xyz.shawngibson.com
ErrorLog logs/xyz-error.log
CustomLog logs/xyz-access.log combined
# Other directives here
</VirtualHost>

Using an odd subdomain would decrease the chances of someone trying to break into your system. I haven't tried this, but it looks like it might work.

As far as the mail goes, you might want to start a new thread in the mail section.
View user's profileSend private message
shawngibson
 
 


Joined: 09 Dec 2006
Posts: 8

PostPosted: Wed May 16, 2007 10:23 am Reply with quoteBack to top

Thanks Dale. I seem to have resolved this, at least being able to get to the core docs from outside localhost, but the mail does not work at all. I have faceitphoto.ca and shawngibson.com both set up for the mx info from my provider, and I'm paying for it (LOL) so I hope this part is something i can resolve. If anyone is interested, this is what my httpd now looks like:

#server config
#ServerName faceitphoto.ca:80
#ServerAdmin admin@faceitphoto.ca
#DirectoryIndex index.html index.php index.html.var index.cg iindex.pl index.htm index.php3 index.php4 index.shtml


NameVirtualHost *

<VirtualHost *>
ServerName faceitphoto.ca:80
ServerAlias www.faceitphoto.ca
ServerAdmin admin@faceitphoto.ca
DocumentRoot "D:/Apache/htdocs"
ErrorLog logs/faceitphoto.ca-error.log
CustomLog logs/faceitphoto.ca-access.log combined
DirectoryIndex index.html index.php index.html.var index.cgi index.pl index.htm index.php3 index.php4 index.shtml
</VirtualHost>

<VirtualHost *>
ServerName counterchaos.com
ServerAlias www.counterchaos.com
DocumentRoot "D:/Apache/htdocs/counterchaos.com"
ErrorLog logs/counterchaos.com-error.log
CustomLog logs/counterchaos.com.log combined
</VirtualHost>

<VirtualHost *>
ServerName shawngibson.com
ServerAlias www.shawngibson.com
DocumentRoot "D:/Apache/htdocs/shawngibson.com"
ErrorLog logs/shawngibson.com-error.log
CustomLog logs/shawngibson.com.log combined
</VirtualHost>

<VirtualHost *>
ServerName mygallerysite.net
ServerAlias www.mygallerysite.net
DocumentRoot "D:/Apache/htdocs/mygallerysite.net"
ErrorLog logs/mygallerysite.net-error.log
CustomLog logs/mygallerysite.net.log combined
</VirtualHost>

<VirtualHost *>
ServerName fleshax.net
ServerAlias www.fleshax.net
DocumentRoot "D:/Apache/htdocs/fleshax.net"
ErrorLog logs/fleshax.net-error.log
CustomLog logs/fleshax.net.log combined
</VirtualHost>

Shawn
View user's profileSend private message
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT