我正在创build一个在我的Intranet上运行的php应用程序。 比方说,我有一个服务于域http://domain.com的Web服务器。 在一个叫做http://app1.domain.com的子域上已经有了一个应用程序 我可以创build另一个名为http://app2.domain.com子域名吗?
我正在尝试创build一个项目我正在工作的子域, projectx.cairocubicles.com ,这个url指向另一台服务器比托pipewww.cairocubicles.com 。 子域名指向的服务器已经安装了以下虚拟主机的apache: <VirtualHost *:80> # Admin email, Server Name (domain name) and any aliases ServerAdmin [email protected] ServerName www.project1.cairocubicles.com # Index file and Document Root (where the public files are located) DirectoryIndex index.html index.php DocumentRoot /home/project1/web/public <Directory /home/project1/web/public> Options Indexes FollowSymLinks AllowOverride All AcceptPathInfo On Order allow,deny Allow from all </Directory> # Custom […]
我有一个网站在IIS 7.5上运行,自动redirect从“ http://mysite.com/whatever.aspx ”到“ http://www.mysite.com/whatever.aspx ” 在该网站上,我想redirect到首页index.aspx的旧url有很多stream量:' http : //mysite.com/foo/bar/index.cgi%something=asdf&somethingelse=qwerty “ 问题是,无论我尝试什么,我只能得到redirect工作与www子域。 如果我使用的url没有www,我只是最终在' http://www.mysite.com/404.aspx ' 有任何想法吗? 在此先感谢您的帮助! 编辑3:好像浏览器caching的redirect响应搞乱了我,所以编辑2是错误的。 请参阅下面的回复。 编辑2:忽略编辑1,它似乎并不像它的工作。 编辑:这里有一些进一步的信息:使用这篇文章我已经设法redirect从“ http://mysite.com/foo/bar/index.cgi ”到“ http://www.mysite.com/index.aspx ” ,但如果我添加查询string参数,它仍然redirect到“ http://www.mysite.com/404.aspx ” 没有办法来捕获所有的请求到CGI文件,包括查询string参数?
我有基于名称的托pipe,让我们把它命名为my.address.com – 我的朋友有'白色'IP address.com并给了我虚拟机比我可以通过SSH访问,还有,他做了一些魔术端口,现在后安装Apache,我可以访问my.address.com上的/ var / www。 所以,问题是我怎样才能使子域像test.my.address.com ? Apache的Listen Directive应该有一些magick,但是我终于无法理解了。 另外,我知道如何用apache创build本地可用的站点,但是它不一样。
我是新的apache2和virtualHosts和所有这些东西,我试图设置多个子域,每个在一个文件中。 例如,我会 quentin-dommerc.com网站上的文件可用: <VirtualHost quentin-dommerc.com:80> DocumentRoot /var/www/ ServerName quentin-dommerc.com </VirtualHost> 和en.quentin-dommerc.com文件在站点可用: <VirtualHost en.quentin-dommerc.com:80> DocumentRoot /var/www/en/ ServerName en.quentin-dommerc.com </VirtualHost> 但是,无论我去哪个子域,我总是在quentin-dommerc.com 🙁 请注意,我已经a2ensite我的文件,他们很好,在网站启用。 我也重新加载/重新启动apache2。 我的CNAME也被设置。
嘿,我使用webmin来pipe理我的CentOS框上的Apache服务器,我试图将我的子域设置为不同的目录。 然而,子域和实际域都去完全相同的页面 <VirtualHost *> DocumentRoot "/home/windshear-gaming.com/public_html/forum" ServerName forum.windshear-gaming.com </VirtualHost> <VirtualHost *> DocumentRoot "/home/windshear-gaming.com/public_html/portal" ServerName windshear-gaming.com </VirtualHost> 多数民众赞成我如何设置两个不同的子域的虚拟主机。 其他一切都保持不变。
所以我在同一个系统上有两个apache服务器。 基本上我想弄明白,如果因为我有两个不同的IP在我的系统上运行是有可能有两个不同的IP地址运行在不同的Apache服务器,但使用默认端口(80),所以用户不必指定地址栏中的端口? 我想要做的是这样,如果用户访问: example.com —->在1.1.1.1:80上运行的Apache Server 1 mail.example.com —->在2.2.2.2:80上运行的Apache Server 2 这将使每个域指向不同的Apache服务器,但在同一个系统上。 谢谢你,JJ埃德加
我知道这是一个古老而“业余”的问题,但是我觉得自己需要提出这个问题,因为我真的不知道发生了什么事情。 我的网站无法访问www前缀…实际上,它有时有效,有时它不。 如果我没有www访问网站,那么它会突然开始与www工作。 在“做功课”之后,我按照下面的步骤来解决: – 在我的域名服务提供商中,我添加了一个A Record和一个C NAMElogging,指向我的网站,字面上看起来像这样,我假设GoDaddy正在parsing@到我的url, – 在我的虚拟主机configuration文件(httpd-vhost.conf在我的情况下)我有这样的结构: NameVirtualHost *:80 <VirtualHost *:80> ServerName www.example.com ServerAlias example.com DocumentRoot my_htdocs_path <Directory my_htdocs_path> Option Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> </VirtualHost> 我有4块,它们都是完美的,但最重要的一块! (墨菲法则)。 这是怎么回事? 有人可以给我一个提示吗? 其他有用的信息: 运行Amazon EC2 我正在使用Route53作为子域名 一切正常工作
我有一些在家里build立的电脑,并希望能够从任何地方访问他们。 我已经通过相应的端口来实现这一点 public | computer | private | Details 5001 | computer 1 | 3389 | Computer 1 RDP 5002 | computer 1 | 5900 | Computer 1 VNC 5003 | computer 2 | 3389 | Computer 2 RDP 如果我尝试连接使用publicIp其次是相应的公共端口一切正常。 我试图将它们作为子域添加到我的个人域,所以我将能够使用子域连接,而不是记住IP或端口。 (例如:连接到svn.domain.com,而不是domain.com:5001) 我应该添加什么样的logging,因为我没有尝试过工作?
我有一个由其他人configuration的Debian 6服务器。 我被要求在该服务器上添加一个子域名。 我正确地configuration了DNS(用nslookup检查),在/var/www/创build了目录,然后添加了新的虚拟主机到/etc/apache2/sites-available (实际上我复制了一个现有子域的文件, ): <VirtualHost *:80> DocumentRoot "/var/www/mysub.example.com" ServerName mysub.example.com ServerAlias www.mysub.example.com ErrorLog …[path to file] CustomLog [path to file] RewriteEngine On #RewriteCond %{HTTP_HOST} ^mysub.example.com$ [NC] #RewriteRule ^(.*)$ http://www.mysub.example.com$1 [R=301,L] <Directory /var/www/mysub.example.com> AllowOverride All Require all granted </Directory> </VirtualHost> 然后,我使用a2ensite添加了主机,并重新启动了Apache,但域mysub.example.com正在redirect到beta.example.com这是我们的testing版生产站点。 奇怪的是, /etc/apache2/sites-available没有configurationbeta.example.com 。 我还应该做些什么来启用这个子域名? 我很确定example.com主机的configuration没有阻塞任何东西,因为我们也有一个configuration为这样的blog.example.com虚拟主机,它工作的很好。 编辑 一些debugging输出: root@xxx:~# apachectl -S VirtualHost configuration: wildcard […]