Welcome, Guest
Please Login or Register.
Lost Password?
Default website page (1 viewing)
Post Reply

TOPIC: Default website page

#16104
Deviation (User)
Posts: 9
graphgraph
Default website page 2008/09/04 13:21  
I'm sure there's a way to do this, but I can't find it.

I would like to have a default web page installed for new domains. Similar to an "under construction" page. Just a placeholder until the site is configured. Right now it just does a directory index which isn't pretty.

How can I configure this? I would assume its under templates, but I can't seem to figure out what I should edit.

Thanks....
Digital Deviation - http://digitaldeviation.com
  The administrator has disabled public write access.
#16106
Berilac (User)
Posts: 43
graphgraph
Re:Default website page 2008/09/04 13:28  
You can select a default web design when first setting up the site with-in the setup when you create the virtual server. Its the bottom option, initial web site content.
  The administrator has disabled public write access.
#16109
Deviation (User)
Posts: 9
graphgraph
Re:Default website page 2008/09/04 13:43  
Berilac wrote:
You can select a default web design when first setting up the site with-in the setup when you create the virtual server. Its the bottom option, initial web site content.
I don't see that option. You're talking about the area where you create the virtual service right? Is that available in the GPL version?
Digital Deviation - http://digitaldeviation.com
  The administrator has disabled public write access.
#16111
ronald (User)
Posts: 511
graphgraph
Re:Default website page 2008/09/04 13:57  
no it is in the vm pro version
  The administrator has disabled public write access.
#16113
Joe (Admin)
Posts: 4124
graph
Re:Default website page 2008/09/04 13:58  
You can put whatever you'd like into the skel directory. Usually this is /etc/skel. So, you'd create:

/etc/skel/public_html

And drop an index.html into it with whatever default page you like...be sure to include any images or other bits. You can also, optionally, have variable substitution done within the files--so you could have the page display the domain name or description field in the temporary site.
  The administrator has disabled public write access.
#16114
ronald (User)
Posts: 511
graphgraph
Re:Default website page 2008/09/04 14:01  
0o i never realized that could be done :)
  The administrator has disabled public write access.
#16115
Deviation (User)
Posts: 9
graphgraph
Re:Default website page 2008/09/04 14:20  
Berilac wrote:
You can select a default web design when first setting up the site with-in the setup when you create the virtual server. Its the bottom option, initial web site content.
Doh! Guess I'll have to pony up some cash.
Digital Deviation - http://digitaldeviation.com
  The administrator has disabled public write access.
#16116
Joe (Admin)
Posts: 4124
graph
Re:Default website page 2008/09/04 14:33  
Doh! Guess I'll have to pony up some cash.

If you insist! ;-)

Seriously, though, there's more than one way to do it...certainly the website builder in Virtualmin Professional is pretty cool, and we're going to get some new templates added soon (there's only a handful right now). But, for just adding a default site, skel works fine, and is available in GPL. I've never really thought of the website creator/editor to be a "killer" Pro-only feature, but I guess it is convenient, particularly during site creation...getting up and running really, incredibly, fast is a pretty nice thing.
  The administrator has disabled public write access.
#16117
Deviation (User)
Posts: 9
graphgraph
Re:Default website page 2008/09/04 14:34  
I was headed the skeleton route. I figured that should work, but I hadn't tested it. I didn't know if there was a "built-in way to accomplish this.

I'll give it a shot. Thanks
Digital Deviation - http://digitaldeviation.com
  The administrator has disabled public write access.
#16121
cyrus (User)
Posts: 42
graphgraph
Re:Default website page 2008/09/04 19:23  
Centos 5.2

What I had done a while ago:

added welcome.conf as follows in /etc/httpd/conf.d/welcome.conf

#
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL. To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>


put index.html in var/www/html/index.html

I used the default Centos landing page.
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.